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]>
This commit is contained in:
Peter Zijlstra 2013-11-14 14:31:54 -08:00 • committed by Linus Torvalds
commit 57f4257eae
3 changed files with 7 additions and 9 deletions

View file

@ -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