]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
atomic64_test: simplify the #ifdef for atomic64_dec_if_positive() test
authorCatalin Marinas <catalin.marinas@arm.com>
Mon, 30 Jul 2012 21:41:09 +0000 (14:41 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 31 Jul 2012 00:25:16 +0000 (17:25 -0700)
commit7463449b8287162454d7e00bf7fd2c64f72c1dc8
treec9dd3007ce4cd59489c0cb7b55b0240aa8bbd865
parent6017b485caeae5915956190b4f3d8307021e785d
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/arm/Kconfig
arch/mips/Kconfig
arch/powerpc/Kconfig
arch/s390/Kconfig
arch/x86/Kconfig
lib/Kconfig
lib/atomic64_test.c