mtx_sleep is preferred to msleep

Calling semantics are the same and both were introduced in 5.0
main
Robert Noland 2007-11-25 12:54:31 -05:00 committed by Robert Noland
parent b2f8368b57
commit 0c3e5261b6
1 changed files with 1 additions and 1 deletions

View File

@ -772,7 +772,7 @@ int drm_close(struct cdev *kdev, int flags, int fmt, DRM_STRUCTPROC *p)
}
/* Contention */
#if defined(__FreeBSD__) && __FreeBSD_version > 500000
retcode = msleep((void *)&dev->lock.lock_queue,
retcode = mtx_sleep((void *)&dev->lock.lock_queue,
&dev->dev_lock, PZERO | PCATCH, "drmlk2", 0);
#else
retcode = tsleep((void *)&dev->lock.lock_queue,