MIPS: Fix wrong branch target in new spin_lock code.
authorJohannes Dickgreber <tanzy@gmx.de>
Mon, 13 Oct 2008 17:33:32 +0000 (19:33 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 15 Oct 2008 11:46:50 +0000 (12:46 +0100)
Signed-off-by: Johannes Dickgreber <tanzy@gmx.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/spinlock.h

index 5d98a3cb85b711f6b9f8a0f1ff7cf8a82b920778..1a1f320c30d8286cff6d8d16374c9a41fa318ac3 100644 (file)
@@ -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 {