diff options
Diffstat (limited to 'arch/mips/include/asm/spinlock.h')
-rw-r--r-- | arch/mips/include/asm/spinlock.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/mips/include/asm/spinlock.h b/arch/mips/include/asm/spinlock.h index ee81297d9117..8a88eb265516 100644 --- a/arch/mips/include/asm/spinlock.h +++ b/arch/mips/include/asm/spinlock.h | |||
@@ -11,6 +11,21 @@ | |||
11 | 11 | ||
12 | #include <asm/processor.h> | 12 | #include <asm/processor.h> |
13 | #include <asm/qrwlock.h> | 13 | #include <asm/qrwlock.h> |
14 | |||
15 | #include <asm-generic/qspinlock_types.h> | ||
16 | |||
17 | #define queued_spin_unlock queued_spin_unlock | ||
18 | /** | ||
19 | * queued_spin_unlock - release a queued spinlock | ||
20 | * @lock : Pointer to queued spinlock structure | ||
21 | */ | ||
22 | static inline void queued_spin_unlock(struct qspinlock *lock) | ||
23 | { | ||
24 | /* This could be optimised with ARCH_HAS_MMIOWB */ | ||
25 | mmiowb(); | ||
26 | smp_store_release(&lock->locked, 0); | ||
27 | } | ||
28 | |||
14 | #include <asm/qspinlock.h> | 29 | #include <asm/qspinlock.h> |
15 | 30 | ||
16 | #endif /* _ASM_SPINLOCK_H */ | 31 | #endif /* _ASM_SPINLOCK_H */ |