projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40ec6c5
)
staging/zmem: Use lockdep_assert_held instead of spin_is_locked
author
Andi Kleen
<ak@linux.intel.com>
Fri, 16 Mar 2012 19:00:57 +0000
(12:00 -0700)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 16 Mar 2012 21:47:41 +0000
(14:47 -0700)
WARN_ON(!spin_is_locked()) will always trigger on UP.
Use lockdep_assert_held instead.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/zcache/tmem.h
patch
|
blob
|
history
diff --git
a/drivers/staging/zcache/tmem.h
b/drivers/staging/zcache/tmem.h
index ed147c4b110d41b8f7febbb9b5efcb0ce3666f0e..0d4aa82706b336e2857d018071929a53c68efc3c 100644
(file)
--- a/
drivers/staging/zcache/tmem.h
+++ b/
drivers/staging/zcache/tmem.h
@@
-47,7
+47,7
@@
#define ASSERT_INVERTED_SENTINEL(_x, _y) do { } while (0)
#endif
-#define ASSERT_SPINLOCK(_l)
WARN_ON(!spin_is_locked(_l)
)
+#define ASSERT_SPINLOCK(_l)
lockdep_assert_held(_l
)
/*
* A pool is the highest-level data structure managed by tmem and