projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57c22f4
)
i386: Use patchable lock prefix in set_64bit
author
Andi Kleen
<ak@suse.de>
Sun, 22 Jul 2007 09:12:40 +0000
(11:12 +0200)
committer
Linus Torvalds
<torvalds@woody.linux-foundation.org>
Sun, 22 Jul 2007 18:03:38 +0000
(11:03 -0700)
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>
include/asm-i386/cmpxchg.h
patch
|
blob
|
blame
|
history
diff --git
a/include/asm-i386/cmpxchg.h
b/include/asm-i386/cmpxchg.h
index 64dcdf46117bf2c1dbaeba8e88fa36912fab67c2..f86ede28f6dc84750ab60250cc7d122534d9c74a 100644
(file)
--- 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),