[PATCH] powerpc64: use fixed lock token for !CONFIG_PPC_SPLPAR

Michael Ellerman mpe at ellerman.id.au
Tue Mar 10 11:15:18 AEDT 2015


On Mon, 2015-03-09 at 17:53 +1100, Benjamin Herrenschmidt wrote:
> On Sat, 2015-03-07 at 19:19 +0800, Kevin Hao wrote:
> > It makes no sense to use a variant lock token on a platform which
> > doesn't support for shared-processor logical partitions. Actually we
> > can eliminate a memory load by using a fixed lock token on these
> > platforms.
> 
> Does this provide an actual measurable benefit ? I found that the lock
> token was quite handy for debugging ...

Yeah. It can be very useful to know which cpu holds a lock when you get into a
dead lock.

Unless you can show this is a performance boost I'm inclined to leave it as-is.

cheers




More information about the Linuxppc-dev mailing list