mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
atomic64_test: simplify the #ifdef for atomic64_dec_if_positive() test
Introduce CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE and use this instead of the multitude of #if defined() checks in atomic64_test.c Signed-off-by: Catalin Marinas <[email protected]> Cc: Russell King <[email protected]> Cc: Ralf Baechle <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Cc: Paul Mackerras <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
6017b485ca
commit
7463449b82
7 changed files with 10 additions and 3 deletions
|
|
@ -340,6 +340,9 @@ config NLATTR
|
|||
config GENERIC_ATOMIC64
|
||||
bool
|
||||
|
||||
config ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE
|
||||
def_bool y if GENERIC_ATOMIC64
|
||||
|
||||
config LRU_CACHE
|
||||
tristate
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue