mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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:
parent
ea1e7ed337
commit
57f4257eae
3 changed files with 7 additions and 9 deletions
|
|
@ -51,13 +51,6 @@ config PERCPU_RWSEM
|
|||
config ARCH_USE_CMPXCHG_LOCKREF
|
||||
bool
|
||||
|
||||
config CMPXCHG_LOCKREF
|
||||
def_bool y if ARCH_USE_CMPXCHG_LOCKREF
|
||||
depends on SMP
|
||||
depends on !GENERIC_LOCKBREAK
|
||||
depends on !DEBUG_SPINLOCK
|
||||
depends on !DEBUG_LOCK_ALLOC
|
||||
|
||||
config CRC_CCITT
|
||||
tristate "CRC-CCITT functions"
|
||||
help
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue