diff options
Diffstat (limited to 'include/asm-mips/spinlock.h')
-rw-r--r-- | include/asm-mips/spinlock.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/asm-mips/spinlock.h b/include/asm-mips/spinlock.h index 7d1cc75a1cbb..669b8e349ff2 100644 --- a/include/asm-mips/spinlock.h +++ b/include/asm-mips/spinlock.h | |||
@@ -9,17 +9,16 @@ | |||
9 | #ifndef _ASM_SPINLOCK_H | 9 | #ifndef _ASM_SPINLOCK_H |
10 | #define _ASM_SPINLOCK_H | 10 | #define _ASM_SPINLOCK_H |
11 | 11 | ||
12 | #include <linux/config.h> | ||
13 | #include <asm/war.h> | 12 | #include <asm/war.h> |
14 | 13 | ||
15 | /* | 14 | /* |
16 | * Your basic SMP spinlocks, allowing only a single CPU anywhere | 15 | * Your basic SMP spinlocks, allowing only a single CPU anywhere |
17 | */ | 16 | */ |
18 | 17 | ||
19 | #define __raw_spin_is_locked(x) ((x)->lock != 0) | 18 | #define __raw_spin_is_locked(x) ((x)->lock != 0) |
20 | #define __raw_spin_lock_flags(lock, flags) __raw_spin_lock(lock) | 19 | #define __raw_spin_lock_flags(lock, flags) __raw_spin_lock(lock) |
21 | #define __raw_spin_unlock_wait(x) \ | 20 | #define __raw_spin_unlock_wait(x) \ |
22 | do { cpu_relax(); } while ((x)->lock) | 21 | do { cpu_relax(); } while ((x)->lock) |
23 | 22 | ||
24 | /* | 23 | /* |
25 | * Simple spin lock operations. There are two variants, one clears IRQ's | 24 | * Simple spin lock operations. There are two variants, one clears IRQ's |