aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2012-03-16 15:00:57 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-03-16 17:47:41 -0400
commitbc01caf53da4de53361376734707336de8fff839 (patch)
tree408addf95b02ccfa53c7221df9310837ea0f94db /drivers/staging
parent40ec6c542121ef85f5ba2e7d75968806009dcaf7 (diff)
staging/zmem: Use lockdep_assert_held instead of spin_is_locked
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/zcache/tmem.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/zcache/tmem.h b/drivers/staging/zcache/tmem.h
index ed147c4b110..0d4aa82706b 100644
--- a/drivers/staging/zcache/tmem.h
+++ b/drivers/staging/zcache/tmem.h
@@ -47,7 +47,7 @@
47#define ASSERT_INVERTED_SENTINEL(_x, _y) do { } while (0) 47#define ASSERT_INVERTED_SENTINEL(_x, _y) do { } while (0)
48#endif 48#endif
49 49
50#define ASSERT_SPINLOCK(_l) WARN_ON(!spin_is_locked(_l)) 50#define ASSERT_SPINLOCK(_l) lockdep_assert_held(_l)
51 51
52/* 52/*
53 * A pool is the highest-level data structure managed by tmem and 53 * A pool is the highest-level data structure managed by tmem and