summaryrefslogtreecommitdiffstats
path: root/arch/x86/Kconfig.cpu
diff options
context:
space:
mode:
authorChristoph Lameter <cl@linux.com>2010-12-14 10:28:44 -0600
committerTejun Heo <tj@kernel.org>2010-12-18 15:54:04 +0100
commit7296e08abac0a22a2534a4f6e493c764f2c77583 (patch)
tree3aa79d3046bf227b14d1f718fa097f87f6257fb9 /arch/x86/Kconfig.cpu
parent2b7124428561c7c3cfa4a58cc4c6feea53f3148e (diff)
downloadlinux-stable-7296e08abac0a22a2534a4f6e493c764f2c77583.tar.gz
linux-stable-7296e08abac0a22a2534a4f6e493c764f2c77583.tar.bz2
linux-stable-7296e08abac0a22a2534a4f6e493c764f2c77583.zip
x86: this_cpu_cmpxchg and this_cpu_xchg operations
Provide support as far as the hardware capabilities of the x86 cpus allow. Define CONFIG_CMPXCHG_LOCAL in Kconfig.cpu to allow core code to test for fast cpuops implementations. V1->V2: - Take out the definition for this_cpu_cmpxchg_8 and move it into a separate patch. tj: - Reordered ops to better follow this_cpu_* organization. - Renamed macro temp variables similar to their existing neighbours. Signed-off-by: Christoph Lameter <cl@linux.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'arch/x86/Kconfig.cpu')
-rw-r--r--arch/x86/Kconfig.cpu3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/Kconfig.cpu b/arch/x86/Kconfig.cpu
index 2ac9069890cd..15588a0ef466 100644
--- a/arch/x86/Kconfig.cpu
+++ b/arch/x86/Kconfig.cpu
@@ -310,6 +310,9 @@ config X86_INTERNODE_CACHE_SHIFT
config X86_CMPXCHG
def_bool X86_64 || (X86_32 && !M386)
+config CMPXCHG_LOCAL
+ def_bool X86_64 || (X86_32 && !M386)
+
config X86_L1_CACHE_SHIFT
int
default "7" if MPENTIUM4 || MPSC