Skip to content

Commit

Permalink
MIPS: Fix wrong branch target in new spin_lock code.
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Dickgreber <tanzy@gmx.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Johannes Dickgreber authored and Ralf Baechle committed Oct 15, 2008
1 parent 201c72a commit 9b8f386
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/include/asm/spinlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ static inline void __raw_spin_unlock(raw_spinlock_t *lock)
" ori %[ticket], %[ticket], 0x2000 \n"
" xori %[ticket], %[ticket], 0x2000 \n"
" sc %[ticket], %[ticket_ptr] \n"
" beqzl %[ticket], 2f \n"
" beqzl %[ticket], 1b \n"
: [ticket_ptr] "+m" (lock->lock),
[ticket] "=&r" (tmp));
} else {
Expand Down

0 comments on commit 9b8f386

Please sign in to comment.