summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Noland <rnoland@wombat.2hip.net>2007-11-25 12:54:31 -0500
committerRobert Noland <rnoland@2hip.net>2007-12-01 14:44:30 -0500
commit0c3e5261b63f6a642f4c62d287e56a52954c2b06 (patch)
tree4541e9e2ce0da3d8afaadbe28a4a84b7476f7de1
parentb2f8368b571efe610750640c5f10f4c4e0bf7133 (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.c2
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,