Commit e05aff854c9f348629bb66c191eee87e4d002900

Authored by Andi Kleen
Committed by Linus Torvalds
1 parent 57c22f49e4

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

include/asm-i386/cmpxchg.h
... ... @@ -34,7 +34,7 @@
34 34 "\n1:\t"
35 35 "movl (%0), %%eax\n\t"
36 36 "movl 4(%0), %%edx\n\t"
37   - "lock cmpxchg8b (%0)\n\t"
  37 + LOCK_PREFIX "cmpxchg8b (%0)\n\t"
38 38 "jnz 1b"
39 39 : /* no outputs */
40 40 : "D"(ptr),