powerpc: ONLINE to OFFLINE CPU state transition during removal
commitceddee23be9fda04b928aa309fd95931bc4efb96
authorRobert Jennings <rcj@linux.vnet.ibm.com>
Thu, 22 Jul 2010 16:43:44 +0000 (22 16:43 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sat, 31 Jul 2010 05:05:19 +0000 (31 15:05 +1000)
treeb20e27b1932523ca44790a7ea033e7d31d69aed8
parentff4bb7cb9feea3d8851c0e7837dce15822acf11b
powerpc: ONLINE to OFFLINE CPU state transition during removal

If a CPU remove is attempted using the 'release' interface on hardware
which supports extended cede, the CPU will be put in the INACTIVE state
rather than the OFFLINE state due to the default preferred_offline_state
in that situation.  In the INACTIVE state it will fail to be removed.

This patch changes the preferred offline state to OFFLINE when an CPU is
in the ONLINE state.  After cpu_down() is called in dlpar_offline_cpu()
the CPU will be OFFLINE and CPU removal can continue.

Signed-off-by: Robert Jennings <rcj@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/dlpar.c