diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-10-01 00:57:27 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-10-01 06:01:08 (GMT) |
commit | 982d007a6eec4a0abb404d2355eeec2c041c61ea (patch) | |
tree | c050631e7fbf5be10edb45ee3be0ded2670b7512 /arch/x86/vdso/vvar.c | |
parent | 84d88d5d4efc37dfb8a93a4a58d8a227ee86ffa4 (diff) | |
download | linux-982d007a6eec4a0abb404d2355eeec2c041c61ea.tar.xz |
x86: Optimize cmpxchg64() at build-time some more
Try to avoid the 'alternates()' code when we can statically
determine that cmpxchg8b is fine. We already have that
CONFIG_x86_CMPXCHG64 (enabled by PAE support), and we could easily
also enable it for some of the CPU cases.
Note, this patch only adds CMPXCHG8B for the obvious Intel CPU's,
not for others. (There was something really messy about cmpxchg8b
and clone CPU's, so if you enable it on other CPUs later, do it
carefully.)
If we avoid that asm-alternative thing when we can assume the
instruction exists, we'll generate less support crud, and we'll
avoid the whole issue with that extra 'nop' for padding instruction
sizes etc.
LKML-Reference: <alpine.LFD.2.01.0909301743150.6996@localhost.localdomain>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/vdso/vvar.c')
0 files changed, 0 insertions, 0 deletions