]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
x86: Simplify __HAVE_ARCH_CMPXCHG tests
authorBorislav Petkov <bp@suse.de>
Fri, 11 Jul 2014 10:43:38 +0000 (12:43 +0200)
committerH. Peter Anvin <hpa@linux.intel.com>
Sat, 12 Jul 2014 00:28:51 +0000 (17:28 -0700)
commitb08ee5f7e4135d64b8edd769367f8964a725122e
treec23c93542548c4ef5da24ed60d3c5dc038b3b607
parent891715793f0451e5114d200be932ac14ce8521a3
x86: Simplify __HAVE_ARCH_CMPXCHG tests

Both the 32-bit and 64-bit cmpxchg.h header define __HAVE_ARCH_CMPXCHG
and there's ifdeffery which checks it. But since both bitness define it,
we can just as well move it up to the main cmpxchg header and simpify a
bit of code in doing that.

Signed-off-by: Borislav Petkov <bp@suse.de>
Link: http://lkml.kernel.org/r/20140711104338.GB17083@pd.tnic
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/include/asm/cmpxchg.h
arch/x86/include/asm/cmpxchg_32.h
arch/x86/include/asm/cmpxchg_64.h
arch/x86/include/asm/mc146818rtc.h
arch/x86/include/asm/mutex_32.h
arch/x86/kernel/acpi/boot.c