From: Johannes Dickgreber Date: Mon, 13 Oct 2008 17:33:32 +0000 (+0200) Subject: MIPS: Fix wrong branch target in new spin_lock code. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9b8f3863d958eaf8747d9daf89998b558bcd6e33;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git MIPS: Fix wrong branch target in new spin_lock code. Signed-off-by: Johannes Dickgreber Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/include/asm/spinlock.h b/arch/mips/include/asm/spinlock.h index 5d98a3cb85b7..1a1f320c30d8 100644 --- a/arch/mips/include/asm/spinlock.h +++ b/arch/mips/include/asm/spinlock.h @@ -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 {