Commit 9ff897c4 authored by Markos Chandras's avatar Markos Chandras Committed by Ralf Baechle

MIPS: spinlock: Adjust arch_spin_lock back-off time

Make it similar to the trylock and R10000_LLSC_WAR cases.
Signed-off-by: default avatarMarkos Chandras <markos.chandras@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/9789/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 2bd7bc25
...@@ -109,7 +109,7 @@ static inline void arch_spin_lock(arch_spinlock_t *lock) ...@@ -109,7 +109,7 @@ static inline void arch_spin_lock(arch_spinlock_t *lock)
" subu %[ticket], %[my_ticket], %[ticket] \n" " subu %[ticket], %[my_ticket], %[ticket] \n"
"2: \n" "2: \n"
" .subsection 2 \n" " .subsection 2 \n"
"4: andi %[ticket], %[ticket], 0x1fff \n" "4: andi %[ticket], %[ticket], 0xffff \n"
" sll %[ticket], 5 \n" " sll %[ticket], 5 \n"
" \n" " \n"
"6: bnez %[ticket], 6b \n" "6: bnez %[ticket], 6b \n"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment