Skip to content

Commit 3696203

Browse files
committed
ARM: OMAP4+: Allow kexec on SMP variants
Kexec needs omap4_cpu_kill, otherwise kexec will produce on SMP: kexec_load failed: Invalid argument Acked-by: Santosh Shilimkar <ssantosh@kernel.org> Tested-by: Keerthy <j-keerthy@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
1 parent 3251885 commit 3696203

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

arch/arm/mach-omap2/common.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ extern void omap_auxcoreboot_addr(u32 cpu_addr);
272272
extern u32 omap_read_auxcoreboot0(void);
273273

274274
extern void omap4_cpu_die(unsigned int cpu);
275+
extern int omap4_cpu_kill(unsigned int cpu);
275276

276277
extern const struct smp_operations omap4_smp_ops;
277278

arch/arm/mach-omap2/omap-hotplug.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,9 @@ void omap4_cpu_die(unsigned int cpu)
6464
pr_debug("CPU%u: spurious wakeup call\n", cpu);
6565
}
6666
}
67+
68+
/* Needed by kexec and platform_can_cpu_hotplug() */
69+
int omap4_cpu_kill(unsigned int cpu)
70+
{
71+
return 1;
72+
}

0 commit comments

Comments
 (0)