]> git.karo-electronics.de Git - karo-tx-linux.git/commit
powerpc/smp: add generic_set_cpu_up() to set cpu_state as CPU_UP_PREPARE
authorZhao Chenhui <chenhui.zhao@freescale.com>
Fri, 20 Jul 2012 12:42:34 +0000 (20:42 +0800)
committerKumar Gala <galak@kernel.crashing.org>
Fri, 10 Aug 2012 12:47:24 +0000 (07:47 -0500)
commit501edd31b1fa6674e7bf81570eca3aedbfb4327c
treeee640451dabecd4b219330cc9ae8ae9045136858
parentf29dfeade17f297d6845ca9d20cb0e00161d37d2
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>
arch/powerpc/include/asm/smp.h
arch/powerpc/kernel/smp.c