aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/asm-mips/spinlock.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/include/asm-mips/spinlock.h b/include/asm-mips/spinlock.h
index 075e9701d6bc..7d1cc75a1cbb 100644
--- a/include/asm-mips/spinlock.h
+++ b/include/asm-mips/spinlock.h
@@ -209,8 +209,7 @@ static inline void __raw_write_lock(raw_rwlock_t *rw)
209 " lui %1, 0x8000 \n" 209 " lui %1, 0x8000 \n"
210 " sc %1, %0 \n" 210 " sc %1, %0 \n"
211 " beqzl %1, 1b \n" 211 " beqzl %1, 1b \n"
212 " nop \n" 212 " sync \n"
213 " sync \n"
214 " .set reorder \n" 213 " .set reorder \n"
215 : "=m" (rw->lock), "=&r" (tmp) 214 : "=m" (rw->lock), "=&r" (tmp)
216 : "m" (rw->lock) 215 : "m" (rw->lock)
@@ -223,8 +222,7 @@ static inline void __raw_write_lock(raw_rwlock_t *rw)
223 " lui %1, 0x8000 \n" 222 " lui %1, 0x8000 \n"
224 " sc %1, %0 \n" 223 " sc %1, %0 \n"
225 " beqz %1, 1b \n" 224 " beqz %1, 1b \n"
226 " nop \n" 225 " sync \n"
227 " sync \n"
228 " .set reorder \n" 226 " .set reorder \n"
229 : "=m" (rw->lock), "=&r" (tmp) 227 : "=m" (rw->lock), "=&r" (tmp)
230 : "m" (rw->lock) 228 : "m" (rw->lock)
@@ -258,8 +256,7 @@ static inline int __raw_write_trylock(raw_rwlock_t *rw)
258 " lui %1, 0x8000 \n" 256 " lui %1, 0x8000 \n"
259 " sc %1, %0 \n" 257 " sc %1, %0 \n"
260 " beqzl %1, 1b \n" 258 " beqzl %1, 1b \n"
261 " nop \n" 259 " sync \n"
262 " sync \n"
263 " li %2, 1 \n" 260 " li %2, 1 \n"
264 " .set reorder \n" 261 " .set reorder \n"
265 "2: \n" 262 "2: \n"