summaryrefslogtreecommitdiff
path: root/arch/powerpc/platforms/pseries/offline_states.h
diff options
context:
space:
mode:
authorVaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>2010-03-01 02:58:09 +0000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2010-03-09 11:57:10 +1100
commit8dbce53cc249a76e9450708d291fce5a7e29c6a1 (patch)
tree8480f0fe8a9aff2a63ef5812adc4c18746b5d846 /arch/powerpc/platforms/pseries/offline_states.h
parentde0b632ba05bc88949e67d33d1c313fcf922ae2e (diff)
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>
Diffstat (limited to 'arch/powerpc/platforms/pseries/offline_states.h')
-rw-r--r--arch/powerpc/platforms/pseries/offline_states.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/pseries/offline_states.h b/arch/powerpc/platforms/pseries/offline_states.h
index 202d8692c6a..75a6f480d93 100644
--- a/arch/powerpc/platforms/pseries/offline_states.h
+++ b/arch/powerpc/platforms/pseries/offline_states.h
@@ -35,4 +35,5 @@ static inline void set_default_offline_state(int cpu)
extern enum cpu_state_vals get_preferred_offline_state(int cpu);
extern int start_secondary(void);
+extern void start_secondary_resume(void);
#endif