diff options
author | Andi Kleen <ak@suse.de> | 2007-07-22 11:12:40 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-22 20:03:38 +0200 |
commit | e05aff854c9f348629bb66c191eee87e4d002900 (patch) | |
tree | 11913da94cce3ac1bc478f1d2916dd573f56fac5 | |
parent | i386: Handle P6s without performance counters in nmi watchdog (diff) | |
download | linux-e05aff854c9f348629bb66c191eee87e4d002900.tar.xz linux-e05aff854c9f348629bb66c191eee87e4d002900.zip |
i386: Use patchable lock prefix in set_64bit
Previously lock was unconditionally used, but shouldn't be needed on
UP systems.
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r-- | include/asm-i386/cmpxchg.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-i386/cmpxchg.h b/include/asm-i386/cmpxchg.h index 64dcdf46117b..f86ede28f6dc 100644 --- a/include/asm-i386/cmpxchg.h +++ b/include/asm-i386/cmpxchg.h @@ -34,7 +34,7 @@ static inline void __set_64bit (unsigned long long * ptr, "\n1:\t" "movl (%0), %%eax\n\t" "movl 4(%0), %%edx\n\t" - "lock cmpxchg8b (%0)\n\t" + LOCK_PREFIX "cmpxchg8b (%0)\n\t" "jnz 1b" : /* no outputs */ : "D"(ptr), |