From: Markos Chandras Date: Mon, 20 Apr 2015 09:54:34 +0000 (+0100) Subject: MIPS: spinlock: Adjust arch_spin_lock back-off time X-Git-Tag: firefly_0821_release~176^2~1535^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9ff897c4e8d5bd05ad7009f84a395596d4953858;p=firefly-linux-kernel-4.4.55.git MIPS: spinlock: Adjust arch_spin_lock back-off time Make it similar to the trylock and R10000_LLSC_WAR cases. Signed-off-by: Markos Chandras Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/9789/ Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/include/asm/spinlock.h b/arch/mips/include/asm/spinlock.h index 7c7f3b2bd3de..9de4ba43dcd1 100644 --- a/arch/mips/include/asm/spinlock.h +++ b/arch/mips/include/asm/spinlock.h @@ -109,7 +109,7 @@ static inline void arch_spin_lock(arch_spinlock_t *lock) " subu %[ticket], %[my_ticket], %[ticket] \n" "2: \n" " .subsection 2 \n" - "4: andi %[ticket], %[ticket], 0x1fff \n" + "4: andi %[ticket], %[ticket], 0xffff \n" " sll %[ticket], 5 \n" " \n" "6: bnez %[ticket], 6b \n"