diff options
Diffstat (limited to 'include/asm-x86_64/spinlock.h')
-rw-r--r-- | include/asm-x86_64/spinlock.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/asm-x86_64/spinlock.h b/include/asm-x86_64/spinlock.h index a8e3d89f591f..1d0733b38a4b 100644 --- a/include/asm-x86_64/spinlock.h +++ b/include/asm-x86_64/spinlock.h | |||
@@ -22,14 +22,13 @@ | |||
22 | #define __raw_spin_lock_string \ | 22 | #define __raw_spin_lock_string \ |
23 | "\n1:\t" \ | 23 | "\n1:\t" \ |
24 | LOCK_PREFIX " ; decl %0\n\t" \ | 24 | LOCK_PREFIX " ; decl %0\n\t" \ |
25 | "js 2f\n" \ | 25 | "jns 2f\n" \ |
26 | LOCK_SECTION_START("") \ | 26 | "3:\n" \ |
27 | "2:\t" \ | ||
28 | "rep;nop\n\t" \ | 27 | "rep;nop\n\t" \ |
29 | "cmpl $0,%0\n\t" \ | 28 | "cmpl $0,%0\n\t" \ |
30 | "jle 2b\n\t" \ | 29 | "jle 3b\n\t" \ |
31 | "jmp 1b\n" \ | 30 | "jmp 1b\n" \ |
32 | LOCK_SECTION_END | 31 | "2:\t" \ |
33 | 32 | ||
34 | #define __raw_spin_lock_string_up \ | 33 | #define __raw_spin_lock_string_up \ |
35 | "\n\tdecl %0" | 34 | "\n\tdecl %0" |