From 6e56c39371a551af1e05e53231162e0fc42c6ce0 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 12 Nov 2003 20:30:51 +0000 Subject: Fix a locking nit, and add asserts in some things that should be called with locks held. --- bsd/drm_os_freebsd.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bsd/drm_os_freebsd.h') diff --git a/bsd/drm_os_freebsd.h b/bsd/drm_os_freebsd.h index 00a44023..31379b6a 100644 --- a/bsd/drm_os_freebsd.h +++ b/bsd/drm_os_freebsd.h @@ -122,6 +122,7 @@ #define DRM_SPINUNINIT(l) mtx_destroy(&l) #define DRM_SPINLOCK(l) mtx_lock(l) #define DRM_SPINUNLOCK(u) mtx_unlock(u); +#define DRM_SPINLOCK_ASSERT(l) mtx_assert(l, MA_OWNED) #define DRM_CURRENTPID curthread->td_proc->p_pid #define DRM_LOCK() mtx_lock(&dev->dev_lock) #define DRM_UNLOCK() mtx_unlock(&dev->dev_lock) @@ -137,6 +138,7 @@ #define DRM_SPINUNINIT(l) #define DRM_SPINLOCK(l) #define DRM_SPINUNLOCK(u) +#define DRM_SPINLOCK_ASSERT(l) #define DRM_CURRENTPID curproc->p_pid #define DRM_LOCK() #define DRM_UNLOCK() -- cgit v1.2.3