diff options
author | Eric Anholt <anholt@freebsd.org> | 2003-11-12 20:30:51 +0000 |
---|---|---|
committer | Eric Anholt <anholt@freebsd.org> | 2003-11-12 20:30:51 +0000 |
commit | 6e56c39371a551af1e05e53231162e0fc42c6ce0 (patch) | |
tree | 208ddc8abb26093a9da37732eaf903649e4971b0 /bsd/drm_os_freebsd.h | |
parent | 1f7598245af7e73b34130a44fbaac230e29d7aad (diff) |
Fix a locking nit, and add asserts in some things that should be called
with locks held.
Diffstat (limited to 'bsd/drm_os_freebsd.h')
-rw-r--r-- | bsd/drm_os_freebsd.h | 2 |
1 files changed, 2 insertions, 0 deletions
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() |