aboutsummaryrefslogtreecommitdiffstats
path: root/lib/lockref.c
diff options
context:
space:
mode:
authorPeter Zijlstra <[email protected]>2013-11-14 22:31:54 +0000
committerLinus Torvalds <[email protected]>2013-11-15 00:32:20 +0000
commit57f4257eae33e036125973858934730250d464e3 (patch)
treef8011cdf5b2e77abb4c721221793d40ed24985a7 /lib/lockref.c
parentmm: create a separate slab for page->ptl allocation (diff)
downloadkernel-57f4257eae33e036125973858934730250d464e3.tar.gz
kernel-57f4257eae33e036125973858934730250d464e3.zip
lockref: use BLOATED_SPINLOCKS to avoid explicit config dependencies
Avoid the fragile Kconfig construct guestimating spinlock_t sizes; use a friendly compile-time test to determine this. [[email protected]: drop CONFIG_CMPXCHG_LOCKREF] Signed-off-by: Peter Zijlstra <[email protected]> Signed-off-by: Kirill A. Shutemov <[email protected]> Cc: Ingo Molnar <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/lockref.c')
-rw-r--r--lib/lockref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lockref.c b/lib/lockref.c
index af6e95d0bed6..d2b123f8456b 100644
--- a/lib/lockref.c
+++ b/lib/lockref.c
@@ -1,7 +1,7 @@
#include <linux/export.h>
#include <linux/lockref.h>
-#ifdef CONFIG_CMPXCHG_LOCKREF
+#if USE_CMPXCHG_LOCKREF
/*
* Allow weakly-ordered memory architectures to provide barrier-less