diff options
Diffstat (limited to 'include/asm-i386')
-rw-r--r-- | include/asm-i386/spinlock.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/asm-i386/spinlock.h b/include/asm-i386/spinlock.h index 324329313af8..b0b3043f05e1 100644 --- a/include/asm-i386/spinlock.h +++ b/include/asm-i386/spinlock.h | |||
@@ -7,6 +7,9 @@ | |||
7 | #include <asm/processor.h> | 7 | #include <asm/processor.h> |
8 | #include <linux/compiler.h> | 8 | #include <linux/compiler.h> |
9 | 9 | ||
10 | #define CLI_STRING "cli" | ||
11 | #define STI_STRING "sti" | ||
12 | |||
10 | /* | 13 | /* |
11 | * Your basic SMP spinlocks, allowing only a single CPU anywhere | 14 | * Your basic SMP spinlocks, allowing only a single CPU anywhere |
12 | * | 15 | * |
@@ -55,12 +58,12 @@ static inline void __raw_spin_lock_flags(raw_spinlock_t *lock, unsigned long fla | |||
55 | "2:\t" | 58 | "2:\t" |
56 | "testl $0x200, %1\n\t" | 59 | "testl $0x200, %1\n\t" |
57 | "jz 4f\n\t" | 60 | "jz 4f\n\t" |
58 | "sti\n" | 61 | STI_STRING "\n" |
59 | "3:\t" | 62 | "3:\t" |
60 | "rep;nop\n\t" | 63 | "rep;nop\n\t" |
61 | "cmpb $0, %0\n\t" | 64 | "cmpb $0, %0\n\t" |
62 | "jle 3b\n\t" | 65 | "jle 3b\n\t" |
63 | "cli\n\t" | 66 | CLI_STRING "\n\t" |
64 | "jmp 1b\n" | 67 | "jmp 1b\n" |
65 | "4:\t" | 68 | "4:\t" |
66 | "rep;nop\n\t" | 69 | "rep;nop\n\t" |