x86/atomic change for v3.1
Linus,
Please pull the latest x86-atomic-for-linus git tree from:
git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip.git x86-atomic-for-linus
Thanks,
Ingo
------------------>
Christoph Lameter (1):
x86: Add support for cmpxchg_double
arch/x86/Kconfig.cpu | 3 ++ arch/x86/include/asm/cmpxchg_32.h | 48 +++++++++++++++++++++++++++++++++++++ arch/x86/include/asm/cmpxchg_64.h | 45 ++++++++++++++++++++++++++++++++++ arch/x86/include/asm/cpufeature.h | 2 + 4 files changed, 98 insertions(+), 0 deletions(-)
arch/x86/Kconfig.cpu +3 -0
@@ -312,6 +312,9 @@ config X86_CMPXCHG config CMPXCHG_LOCAL def_bool X86_64 || (X86_32 && !M386) +config CMPXCHG_DOUBLE + def_bool y + config X86_L1_CACHE_SHIFT int default "7" if MPENTIUM4 || MPSC
arch/x86/include/asm/cmpxchg_32.h +48 -0
52 lines not on this page · raw message
arch/x86/include/asm/cmpxchg_64.h +45 -0
49 lines not on this page · raw message
arch/x86/include/asm/cpufeature.h +2 -0
@@ -288,6 +288,8 @@ extern const char * const x86_power_flags[32];#define cpu_has_hypervisor boot_cpu_has(X86_FEATURE_HYPERVISOR)#define cpu_has_pclmulqdq boot_cpu_has(X86_FEATURE_PCLMULQDQ)#define cpu_has_perfctr_core boot_cpu_has(X86_FEATURE_PERFCTR_CORE) +#define cpu_has_cx8 boot_cpu_has(X86_FEATURE_CX8) +#define cpu_has_cx16 boot_cpu_has(X86_FEATURE_CX16)#if defined(CONFIG_X86_INVLPG ) || defined(CONFIG_X86_64 )# define cpu_has_invlpg 1