Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3696203c authored by Tony Lindgren's avatar Tony Lindgren
Browse files

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: default avatarSantosh Shilimkar <ssantosh@kernel.org>
Tested-by: default avatarKeerthy <j-keerthy@ti.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 32518852
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -272,6 +272,7 @@ extern void omap_auxcoreboot_addr(u32 cpu_addr);
extern u32 omap_read_auxcoreboot0(void);

extern void omap4_cpu_die(unsigned int cpu);
extern int omap4_cpu_kill(unsigned int cpu);

extern const struct smp_operations omap4_smp_ops;

+6 −0
Original line number Diff line number Diff line
@@ -64,3 +64,9 @@ void omap4_cpu_die(unsigned int cpu)
		pr_debug("CPU%u: spurious wakeup call\n", cpu);
	}
}

/* Needed by kexec and platform_can_cpu_hotplug() */
int omap4_cpu_kill(unsigned int cpu)
{
	return 1;
}