Skip to content

Commit

Permalink
HACK: ARM: smp: Check for cpu_die callback to detect hotplug support
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
takondra committed Oct 9, 2013
1 parent 3b59b85 commit 092cbfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ int boot_secondary(unsigned int cpu, struct task_struct *idle)
int platform_can_cpu_hotplug(void)
{
#ifdef CONFIG_HOTPLUG_CPU
if (smp_ops.cpu_kill)
if (smp_ops.cpu_die)
return 1;
#endif

Expand Down

0 comments on commit 092cbfa

Please sign in to comment.