]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ARM: OMAP4+: Reset CPU1 properly for kexec
authorTony Lindgren <tony@atomide.com>
Wed, 22 Jun 2016 08:59:40 +0000 (01:59 -0700)
committerTony Lindgren <tony@atomide.com>
Thu, 23 Jun 2016 05:55:53 +0000 (22:55 -0700)
commit3251885285e15e4b0ff1b0501a49380b24204f35
tree9392b358af454b51c10e47a390302f485c84545d
parent0573b957fc21c6a6cee01fdb08c1f7ce556afbac
ARM: OMAP4+: Reset CPU1 properly for kexec

We need to reset CPU1 properly for kexec when booting different
kernel versions. Otherwise CPU1 will attempt to boot the the
previous kernel's start_secondary(). Note that the restctrl
register is different from the low-power mode wakeup register
CPU1_WAKEUP_NS_PA_ADDR. We need to configure both.

Let's fix the issue by defining SoC specific data to initialize
things in a more generic way. And let's also standardize omap-smp.c
to use soc_is instead of cpu_is while at it.

Acked-by: Santosh Shilimkar <ssantosh@kernel.org>
Tested-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/omap-smp.c