Skip to content

Commit

Permalink
MIPS: spinlock: Adjust arch_spin_lock back-off time
Browse files Browse the repository at this point in the history
Make it similar to the trylock and R10000_LLSC_WAR cases.

Signed-off-by: Markos Chandras <[email protected]>
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/9789/
Signed-off-by: Ralf Baechle <[email protected]>
  • Loading branch information
Markos Chandras authored and ralfbaechle committed Jun 24, 2015
1 parent 2bd7bc2 commit 9ff897c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/include/asm/spinlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 9ff897c

Please sign in to comment.