diff options
author | Zhao Chenhui <chenhui.zhao@freescale.com> | 2012-07-20 20:42:34 +0800 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2012-09-12 14:57:08 -0500 |
commit | ae5cab476342bc7311945cf89d5cbd8d57f4a5a9 (patch) | |
tree | ac19bdca1a55fd3a78d1546f3f94bb83ea641802 /arch/powerpc/include/asm | |
parent | 15f34eb12340b2c2e0cd90c5987ad6b5f73b79b7 (diff) | |
download | blackbird-op-linux-ae5cab476342bc7311945cf89d5cbd8d57f4a5a9.tar.gz blackbird-op-linux-ae5cab476342bc7311945cf89d5cbd8d57f4a5a9.zip |
powerpc/smp: add generic_set_cpu_up() to set cpu_state as CPU_UP_PREPARE
In the case of cpu hotplug, the cpu_state should be set to CPU_UP_PREPARE
when kicking cpu. Otherwise, the cpu_state is always CPU_DEAD after
calling generic_set_cpu_dead(), which makes the delay in generic_cpu_die()
not happen.
Signed-off-by: Zhao Chenhui <chenhui.zhao@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm')
-rw-r--r-- | arch/powerpc/include/asm/smp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/smp.h b/arch/powerpc/include/asm/smp.h index ebc24dc5b1a1..ce8e2bdf84ed 100644 --- a/arch/powerpc/include/asm/smp.h +++ b/arch/powerpc/include/asm/smp.h @@ -65,6 +65,7 @@ int generic_cpu_disable(void); void generic_cpu_die(unsigned int cpu); void generic_mach_cpu_die(void); void generic_set_cpu_dead(unsigned int cpu); +void generic_set_cpu_up(unsigned int cpu); int generic_check_cpu_restart(unsigned int cpu); #endif |