summaryrefslogtreecommitdiffstats
path: root/arch/sh/include/asm/spinlock-llsc.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/include/asm/spinlock-llsc.h')
-rw-r--r--arch/sh/include/asm/spinlock-llsc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sh/include/asm/spinlock-llsc.h b/arch/sh/include/asm/spinlock-llsc.h
index 786ee0fde3b0..7fd929cd2e7a 100644
--- a/arch/sh/include/asm/spinlock-llsc.h
+++ b/arch/sh/include/asm/spinlock-llsc.h
@@ -47,6 +47,8 @@ static inline void arch_spin_unlock(arch_spinlock_t *lock)
{
unsigned long tmp;
+ /* This could be optimised with ARCH_HAS_MMIOWB */
+ mmiowb();
__asm__ __volatile__ (
"mov #1, %0 ! arch_spin_unlock \n\t"
"mov.l %0, @%1 \n\t"