Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH] MIPS: asm: spinlock: Adjust arch_spin_lock back-off time
@ 2015-04-20  9:54 Markos Chandras
  2015-04-20  9:54 ` Markos Chandras
  2015-05-18 20:51 ` David Daney
  0 siblings, 2 replies; 3+ messages in thread
From: Markos Chandras @ 2015-04-20  9:54 UTC (permalink / raw)
  To: linux-mips; +Cc: Markos Chandras

Make it similar to the trylock and R10000_LLSC_WAR cases.

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
---
I can't find a reference on why this was different compared to the other
cases so I presume it was just an overlook in commit
2a31b03335e570dce5fdd082e0d71d48b2cb4290
---
 arch/mips/include/asm/spinlock.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/include/asm/spinlock.h b/arch/mips/include/asm/spinlock.h
index 1fca2e0793dc..cc771a21899d 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"
-- 
2.3.5

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-05-18 20:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-20  9:54 [PATCH] MIPS: asm: spinlock: Adjust arch_spin_lock back-off time Markos Chandras
2015-04-20  9:54 ` Markos Chandras
2015-05-18 20:51 ` David Daney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox