diff options
author | Tony Lindgren <tony@atomide.com> | 2016-06-22 11:05:12 +0200 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2016-06-23 07:57:02 +0200 |
commit | 3696203c47544f126fe6f0edd6e88e5cc90e7f34 (patch) | |
tree | fa4b94eb5fc33bec66be80224571f423b21697d2 /arch/arm/mach-omap2/omap-hotplug.c | |
parent | ARM: OMAP4+: Reset CPU1 properly for kexec (diff) | |
download | linux-3696203c47544f126fe6f0edd6e88e5cc90e7f34.tar.xz linux-3696203c47544f126fe6f0edd6e88e5cc90e7f34.zip |
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>
Diffstat (limited to 'arch/arm/mach-omap2/omap-hotplug.c')
-rw-r--r-- | arch/arm/mach-omap2/omap-hotplug.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/omap-hotplug.c b/arch/arm/mach-omap2/omap-hotplug.c index 593fec753b28..d3fb5661bb5d 100644 --- a/arch/arm/mach-omap2/omap-hotplug.c +++ b/arch/arm/mach-omap2/omap-hotplug.c @@ -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; +} |