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

2015-03-10 Thread Kevin Hao
On Tue, Mar 10, 2015 at 11:15:18AM +1100, Michael Ellerman wrote: > 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-proce

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

2015-03-09 Thread Michael Ellerman
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 us

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

2015-03-08 Thread Benjamin Herrenschmidt
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

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

2015-03-07 Thread Kevin Hao
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. Signed-off-by: Kevin Hao --- arch/powerpc/include/asm/spinlock.h | 8 ++-- 1 file