powerpc: Stop using non-architected shared_proc field in lppaca
authorAnton Blanchard <anton@samba.org>
Tue, 6 Aug 2013 16:01:26 +0000 (02:01 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 14 Aug 2013 01:50:26 +0000 (11:50 +1000)
commitf13c13a005127b5dc5daaca190277a062d946e63
tree0e1085a2eb655f8992590cbce39de0c0f87a5a64
parent0c69f9c52c474ccd1cade27c7be5f8ab830cdc3a
powerpc: Stop using non-architected shared_proc field in lppaca

Although the shared_proc field in the lppaca works today, it is
not architected. A shared processor partition will always have a non
zero yield_count so use that instead. Create a wrapper so users
don't have to know about the details.

In order for older kernels to continue to work on KVM we need
to set the shared_proc bit. While here, remove the ugly bitfield.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/lppaca.h
arch/powerpc/include/asm/spinlock.h
arch/powerpc/kernel/lparcfg.c
arch/powerpc/kvm/book3s_hv.c
arch/powerpc/mm/numa.c
arch/powerpc/platforms/pseries/hotplug-cpu.c
arch/powerpc/platforms/pseries/processor_idle.c