mtx_sleep is preferred to msleep
Calling semantics are the same and both were introduced in 5.0main
parent
b2f8368b57
commit
0c3e5261b6
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue