Skip to content

Commit 092cbfa

Browse files
committed
HACK: ARM: smp: Check for cpu_die callback to detect hotplug support
OMAP doesn't have cpu_kill callback implemented, but it effectively disables CPU in cpu_die callback. Change detection criteria to be able to execute kexec. Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org>
1 parent 3b59b85 commit 092cbfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm/kernel/smp.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ int boot_secondary(unsigned int cpu, struct task_struct *idle)
149149
int platform_can_cpu_hotplug(void)
150150
{
151151
#ifdef CONFIG_HOTPLUG_CPU
152-
if (smp_ops.cpu_kill)
152+
if (smp_ops.cpu_die)
153153
return 1;
154154
#endif
155155

0 commit comments

Comments
 (0)