powerpc/pseries: Fix dedicated processor partition detection
authorAnton Blanchard <anton@samba.org>
Sat, 19 Oct 2013 23:26:20 +0000 (10:26 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 30 Oct 2013 05:01:43 +0000 (16:01 +1100)
commit733187e29576041ceccf3b82092ca900fc929170
tree726795008263fd9d5f01a020a3d60f2d04d353e3
parentdbc2fbd7c29a78724e761711d516930246c0e1c2
powerpc/pseries: Fix dedicated processor partition detection

commit f13c13a00512 (powerpc: Stop using non-architected shared_proc
field in lppaca) fixed a potential issue with shared/dedicated
partition detection. The old method of detection relied on an
unarchitected field (shared_proc), and this patch switched
to using something architected (a non zero yield_count).

Unfortunately the assertion in the Linux header that yield_count
is only non zero on shared processor partitions is not true. It
turns out dedicated processor partitions can increment yield_count
and as such we falsely detect dedicated partitions as shared.

Fix the comment, and switch back to using the old method.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/lppaca.h