diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2014-12-22 10:55:49 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2015-01-10 23:57:06 +1000 |
commit | 0b6a58de775c3174877d53668499255658a2137a (patch) | |
tree | ddda5863b79fdc80ec6596e4f379c9f857be303c /lib | |
parent | 2466b3576be7dffdbf6591434dcd2671ebbfcf70 (diff) | |
download | nouveau-0b6a58de775c3174877d53668499255658a2137a.tar.gz |
lib: fix for spinlock change
Diffstat (limited to 'lib')
-rw-r--r-- | lib/core/os.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/core/os.h b/lib/core/os.h index 43570fb9c..f42c06df7 100644 --- a/lib/core/os.h +++ b/lib/core/os.h @@ -507,6 +507,7 @@ typedef struct spinlock_t { pthread_mutex_unlock(&(a)->lock); \ _ret; \ }) +#define assert_spin_locked(a) BUG_ON(!spin_is_locked(a)) /****************************************************************************** * rwlocks |