ARM: PSCI: Split out common stack setup code from psci_arch_init
authorChen-Yu Tsai <wens@csie.org>
Sun, 19 Jun 2016 04:38:31 +0000 (12:38 +0800)
committerHans de Goede <hdegoede@redhat.com>
Fri, 15 Jul 2016 13:54:56 +0000 (15:54 +0200)
commitb52813239c10d857bd262dc850232ccccdbaa69e
tree6fd2e313744dd12d62e90f5a411512a5f363c6fe
parent66ab5286736e47cc4fdec9ceab4cc1b2f24ed066
ARM: PSCI: Split out common stack setup code from psci_arch_init

Every platform has the same stack setup code in assembly as part of
psci_arch_init.

Move this out into a common separate function, psci_stack_setup, for
all platforms. This will allow us to move the remaining parts of
psci_arch_init into C code, or drop it entirely.

Also provide a stub no-op psci_arch_init for platforms that don't need
their own specific setup code.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
arch/arm/cpu/armv7/ls102xa/psci.S
arch/arm/cpu/armv7/mx7/psci.S
arch/arm/cpu/armv7/nonsec_virt.S
arch/arm/cpu/armv7/psci.S
arch/arm/cpu/armv7/sunxi/psci_head.S
arch/arm/mach-tegra/psci.S