summaryrefslogtreecommitdiff
path: root/bsd-core
diff options
context:
space:
mode:
authorRobert Noland <rnoland@2hip.net>2009-03-16 00:17:54 -0500
committerRobert Noland <rnoland@2hip.net>2009-03-16 00:17:54 -0500
commit6777c6bb8bb399e48500d742e80822808451010b (patch)
tree3903683676819f50f8328fbf78f05b104e06a8a9 /bsd-core
parent06e182d0259d1d2e775814fa070c6cce0ee233a8 (diff)
FreeBSD: Don't set the PZERO flag to mtx_sleep.
We also don't support anything old enough to need tsleep.
Diffstat (limited to 'bsd-core')
-rw-r--r--bsd-core/drm_drv.c2
-rw-r--r--bsd-core/drm_lock.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/bsd-core/drm_drv.c b/bsd-core/drm_drv.c
index 2be461da..883e3a0f 100644
--- a/bsd-core/drm_drv.c
+++ b/bsd-core/drm_drv.c
@@ -663,7 +663,7 @@ void drm_close(void *data)
}
/* Contention */
retcode = mtx_sleep((void *)&dev->lock.lock_queue,
- &dev->dev_lock, PZERO | PCATCH, "drmlk2", 0);
+ &dev->dev_lock, PCATCH, "drmlk2", 0);
if (retcode)
break;
}
diff --git a/bsd-core/drm_lock.c b/bsd-core/drm_lock.c
index 94b3f8bb..24c127a9 100644
--- a/bsd-core/drm_lock.c
+++ b/bsd-core/drm_lock.c
@@ -79,7 +79,7 @@ int drm_lock(struct drm_device *dev, void *data, struct drm_file *file_priv)
/* Contention */
ret = mtx_sleep((void *)&dev->lock.lock_queue, &dev->dev_lock,
- PZERO | PCATCH, "drmlk2", 0);
+ PCATCH, "drmlk2", 0);
if (ret != 0)
break;
}