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