]> git.karo-electronics.de Git - karo-tx-linux.git/commit
atomic64_test: simplify the #ifdef for atomic64_dec_if_positive() test
authorCatalin Marinas <catalin.marinas@arm.com>
Sat, 21 Jul 2012 00:54:59 +0000 (10:54 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Jul 2012 03:53:21 +0000 (13:53 +1000)
commit97e30f9d6a54dae03b321e278be4bd768e877f15
tree9d4741751573a38a183d008ade56070b6efac209
parentee5939282f17311c5eb72ff96eb0215b2de72b58
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 <catalin.marinas@arm.com>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/arm/Kconfig
arch/mips/Kconfig
arch/powerpc/Kconfig
arch/s390/Kconfig
arch/x86/Kconfig
lib/Kconfig
lib/atomic64_test.c