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-Tag: v2.6.28-rc1~564^2~13 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=9b8f3863d958eaf8747d9daf89998b558bcd6e33;p=linux-2.6-omap-h63xx.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 5d98a3cb85b..1a1f320c30d 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 {