summaryrefslogtreecommitdiff
path: root/bsd-core/drm_lock.c
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2003-04-24 04:50:07 +0000
committerEric Anholt <anholt@freebsd.org>2003-04-24 04:50:07 +0000
commitbcd527ee71043478d27ec3e5b611c9f34bf4f191 (patch)
treedfac3d3e3cac55ca7b5fbf9e3089725c491c10af /bsd-core/drm_lock.c
parent00522cedd6ee3027d2858909d34e862fa21e6e28 (diff)
Remove a bunch of dead code and fix spelling of a couple of comments.
Diffstat (limited to 'bsd-core/drm_lock.c')
-rw-r--r--bsd-core/drm_lock.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/bsd-core/drm_lock.c b/bsd-core/drm_lock.c
index 3bab78ef..a859b178 100644
--- a/bsd-core/drm_lock.c
+++ b/bsd-core/drm_lock.c
@@ -202,35 +202,3 @@ int DRM(finish)( DRM_IOCTL_ARGS )
DRM(flush_unblock)(dev, lock.context, lock.flags);
return ret;
}
-
-/* If we get here, it means that the process has called DRM_IOCTL_LOCK
- without calling DRM_IOCTL_UNLOCK.
-
- If the lock is not held, then let the signal proceed as usual.
-
- If the lock is held, then set the contended flag and keep the signal
- blocked.
-
-
- Return 1 if the signal should be delivered normally.
- Return 0 if the signal should be blocked. */
-
-int DRM(notifier)(void *priv)
-{
- drm_sigdata_t *s = (drm_sigdata_t *)priv;
- unsigned int old, new;
-
- /* Allow signal delivery if lock isn't held */
- if (!_DRM_LOCK_IS_HELD(s->lock->lock)
- || _DRM_LOCKING_CONTEXT(s->lock->lock) != s->context) return 1;
-
- /* Otherwise, set flag to force call to
- drmUnlock */
- do {
- old = s->lock->lock;
- new = old | _DRM_LOCK_CONT;
- } while (!atomic_cmpset_int(&s->lock->lock, old, new));
-
- return 0;
-}
-