diff options
author | Markos Chandras <markos.chandras@imgtec.com> | 2015-04-20 05:54:34 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-06-24 08:57:46 -0400 |
commit | 9ff897c4e8d5bd05ad7009f84a395596d4953858 (patch) | |
tree | 91539f207ac2176926a1dd48a75316205d1bcc6f /arch/mips | |
parent | 2bd7bc254ab1f45269db6dd7957d63b713817408 (diff) |
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 <markos.chandras@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/9789/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/include/asm/spinlock.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
109 | " subu %[ticket], %[my_ticket], %[ticket] \n" | 109 | " subu %[ticket], %[my_ticket], %[ticket] \n" |
110 | "2: \n" | 110 | "2: \n" |
111 | " .subsection 2 \n" | 111 | " .subsection 2 \n" |
112 | "4: andi %[ticket], %[ticket], 0x1fff \n" | 112 | "4: andi %[ticket], %[ticket], 0xffff \n" |
113 | " sll %[ticket], 5 \n" | 113 | " sll %[ticket], 5 \n" |
114 | " \n" | 114 | " \n" |
115 | "6: bnez %[ticket], 6b \n" | 115 | "6: bnez %[ticket], 6b \n" |