linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [Question] ARM/ARM64: Ticket Spinlock With GENERIC_BREAKLOCK
@ 2014-04-18  2:35 Leo Yan
  2014-04-23 13:09 ` Will Deacon
  0 siblings, 1 reply; 2+ messages in thread
From: Leo Yan @ 2014-04-18  2:35 UTC (permalink / raw)
  To: linux-arm-kernel

hi,

I noticed now for ARM and ARM64 both have disabled GENERIC_BREAKLOCK, 
and i found the patch "ARM: 7484/1: Don't enable GENERIC_LOCKBREAK with 
ticket spinlocks" to remove related configuration.

The ticket spinlock will be helpful for spinlock's performance, but 
after disabled LOCKBREAK, it will always disable the preempt when the 
cpu is spinning to wait for the lock.

So even after have refined the spinlock with ticket algorithm, we still 
need LOCKBREAK for the cpu has the chance to do scheduling so that other 
threads have chance can run.

Thanks for any advice. :-)

-- 
Thx,
Leo Yan

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

end of thread, other threads:[~2014-04-23 13:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-18  2:35 [Question] ARM/ARM64: Ticket Spinlock With GENERIC_BREAKLOCK Leo Yan
2014-04-23 13:09 ` Will Deacon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).