Commit b63014ad authored by Ralf Baechle's avatar Ralf Baechle

Move sync into the delay slot here also.

Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 93b25d06
...@@ -209,7 +209,6 @@ static inline void __raw_write_lock(raw_rwlock_t *rw) ...@@ -209,7 +209,6 @@ static inline void __raw_write_lock(raw_rwlock_t *rw)
" lui %1, 0x8000 \n" " lui %1, 0x8000 \n"
" sc %1, %0 \n" " sc %1, %0 \n"
" beqzl %1, 1b \n" " beqzl %1, 1b \n"
" nop \n"
" sync \n" " sync \n"
" .set reorder \n" " .set reorder \n"
: "=m" (rw->lock), "=&r" (tmp) : "=m" (rw->lock), "=&r" (tmp)
...@@ -223,7 +222,6 @@ static inline void __raw_write_lock(raw_rwlock_t *rw) ...@@ -223,7 +222,6 @@ static inline void __raw_write_lock(raw_rwlock_t *rw)
" lui %1, 0x8000 \n" " lui %1, 0x8000 \n"
" sc %1, %0 \n" " sc %1, %0 \n"
" beqz %1, 1b \n" " beqz %1, 1b \n"
" nop \n"
" sync \n" " sync \n"
" .set reorder \n" " .set reorder \n"
: "=m" (rw->lock), "=&r" (tmp) : "=m" (rw->lock), "=&r" (tmp)
...@@ -258,7 +256,6 @@ static inline int __raw_write_trylock(raw_rwlock_t *rw) ...@@ -258,7 +256,6 @@ static inline int __raw_write_trylock(raw_rwlock_t *rw)
" lui %1, 0x8000 \n" " lui %1, 0x8000 \n"
" sc %1, %0 \n" " sc %1, %0 \n"
" beqzl %1, 1b \n" " beqzl %1, 1b \n"
" nop \n"
" sync \n" " sync \n"
" li %2, 1 \n" " li %2, 1 \n"
" .set reorder \n" " .set reorder \n"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment