diff options
author | Jan Beulich <JBeulich@novell.com> | 2005-10-30 14:59:27 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-10-30 17:37:11 -0800 |
commit | 8896fab35e62aa748a5ce62ac773508e51f10be1 (patch) | |
tree | bb8f2dce7b5d0aa6ffe68aa6b97920d2ce32e164 /arch | |
parent | dacb16b1a034fa7a0b868ee30758119fbfd90bc1 (diff) | |
download | linux-8896fab35e62aa748a5ce62ac773508e51f10be1.tar.bz2 |
[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')
-rw-r--r-- | arch/i386/Kconfig | 5 |
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 |