diff options
author | Robert Noland <rnoland@wombat.2hip.net> | 2007-11-25 12:54:31 -0500 |
---|---|---|
committer | Robert Noland <rnoland@2hip.net> | 2007-12-01 14:44:30 -0500 |
commit | 0c3e5261b63f6a642f4c62d287e56a52954c2b06 (patch) | |
tree | 4541e9e2ce0da3d8afaadbe28a4a84b7476f7de1 | |
parent | b2f8368b571efe610750640c5f10f4c4e0bf7133 (diff) |
mtx_sleep is preferred to msleep
Calling semantics are the same and both were introduced in 5.0
-rw-r--r-- | bsd-core/drm_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bsd-core/drm_drv.c b/bsd-core/drm_drv.c index 96dc4d35..8466ce33 100644 --- a/bsd-core/drm_drv.c +++ b/bsd-core/drm_drv.c @@ -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, |