summaryrefslogtreecommitdiffstats
path: root/arch/i386
diff options
context:
space:
mode:
authorJan Beulich2005-10-30 23:59:27 +0100
committerLinus Torvalds2005-10-31 02:37:11 +0100
commit8896fab35e62aa748a5ce62ac773508e51f10be1 (patch)
treebb8f2dce7b5d0aa6ffe68aa6b97920d2ce32e164 /arch/i386
parent[PATCH] i386 and x86_64 TSC set_cyc2ns_scale imprecision (diff)
downloadkernel-qcow2-linux-8896fab35e62aa748a5ce62ac773508e51f10be1.tar.gz
kernel-qcow2-linux-8896fab35e62aa748a5ce62ac773508e51f10be1.tar.xz
kernel-qcow2-linux-8896fab35e62aa748a5ce62ac773508e51f10be1.zip
[PATCH] x86: cmpxchg improvements
This adjusts i386's cmpxchg patterns so that - for word and long cmpxchg-es the compiler can utilize all possible registers - cmpxchg8b gets disabled when the minimum specified hardware architectur doesn't support it (like was already happening for the byte, word, and long ones). Signed-off-by: Jan Beulich <jbeulich@novell.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/i386')
-rw-r--r--arch/i386/Kconfig5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/i386/Kconfig b/arch/i386/Kconfig
index 2e3e8dbcb79f..35d3cff30057 100644
--- a/arch/i386/Kconfig
+++ b/arch/i386/Kconfig
@@ -424,6 +424,11 @@ config X86_POPAD_OK
depends on !M386
default y
+config X86_CMPXCHG64
+ bool
+ depends on !M386 && !M486
+ default y
+
config X86_ALIGNMENT_16
bool
depends on MWINCHIP3D || MWINCHIP2 || MWINCHIPC6 || MCYRIXIII || X86_ELAN || MK6 || M586MMX || M586TSC || M586 || M486 || MVIAC3_2 || MGEODEGX1