summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/asm-mips64/spinlock.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-mips64/spinlock.h b/include/asm-mips64/spinlock.h
index 8787de4da..a2d269d29 100644
--- a/include/asm-mips64/spinlock.h
+++ b/include/asm-mips64/spinlock.h
@@ -113,6 +113,7 @@ static inline void read_unlock(rwlock_t *rw)
"sub\t%1, 1\n\t"
"sc\t%1, %0\n\t"
"beqz\t%1, 1b\n\t"
+ "sync\n\t"
".set\treorder"
: "=o" (__dummy_lock(rw)), "=&r" (tmp)
: "o" (__dummy_lock(rw))