powerpc: Reset kernel stack on cpu online from cede state
Cpu hotplug (offline) without dlpar operation will place cpu in cede state and the extended_cede_processor() function will return when resumed. Kernel stack pointer needs to be reset before start_secondary() is called to continue the online operation. Added new function start_secondary_resume() to do the above steps. Signed-off-by: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com> Cc: Gautham R Shenoy <ego@in.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:

committed by
Benjamin Herrenschmidt

父節點
de0b632ba0
當前提交
8dbce53cc2
@@ -146,12 +146,11 @@ static void pseries_mach_cpu_die(void)
|
||||
unregister_slb_shadow(hwcpu, __pa(get_slb_shadow()));
|
||||
|
||||
/*
|
||||
* NOTE: Calling start_secondary() here for now to
|
||||
* start new context.
|
||||
* However, need to do it cleanly by resetting the
|
||||
* stack pointer.
|
||||
* Call to start_secondary_resume() will not return.
|
||||
* Kernel stack will be reset and start_secondary()
|
||||
* will be called to continue the online operation.
|
||||
*/
|
||||
start_secondary();
|
||||
start_secondary_resume();
|
||||
|
||||
} else if (get_preferred_offline_state(cpu) == CPU_STATE_OFFLINE) {
|
||||
|
||||
|
Reference in New Issue
Block a user