diff options
-rw-r--r-- | arch/mips/include/asm/bitops.h | 2 | ||||
-rw-r--r-- | arch/mips/include/asm/spinlock.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/include/asm/bitops.h b/arch/mips/include/asm/bitops.h index 0cf29bd5dc5c..ce9666cf1499 100644 --- a/arch/mips/include/asm/bitops.h +++ b/arch/mips/include/asm/bitops.h | |||
@@ -469,7 +469,7 @@ static inline int test_and_change_bit(unsigned long nr, | |||
469 | */ | 469 | */ |
470 | static inline void __clear_bit_unlock(unsigned long nr, volatile unsigned long *addr) | 470 | static inline void __clear_bit_unlock(unsigned long nr, volatile unsigned long *addr) |
471 | { | 471 | { |
472 | smp_mb(); | 472 | smp_mb__before_llsc(); |
473 | __clear_bit(nr, addr); | 473 | __clear_bit(nr, addr); |
474 | } | 474 | } |
475 | 475 | ||
diff --git a/arch/mips/include/asm/spinlock.h b/arch/mips/include/asm/spinlock.h index 1fca2e0793dc..7c7f3b2bd3de 100644 --- a/arch/mips/include/asm/spinlock.h +++ b/arch/mips/include/asm/spinlock.h | |||
@@ -317,7 +317,7 @@ static inline void arch_write_lock(arch_rwlock_t *rw) | |||
317 | 317 | ||
318 | static inline void arch_write_unlock(arch_rwlock_t *rw) | 318 | static inline void arch_write_unlock(arch_rwlock_t *rw) |
319 | { | 319 | { |
320 | smp_mb(); | 320 | smp_mb__before_llsc(); |
321 | 321 | ||
322 | __asm__ __volatile__( | 322 | __asm__ __volatile__( |
323 | " # arch_write_unlock \n" | 323 | " # arch_write_unlock \n" |