ARM: Factor out reusable psci_get_cpu_stack_top
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 21 Apr 2015 05:18:29 +0000 (07:18 +0200)
committerTom Warren <twarren@nvidia.com>
Wed, 13 May 2015 16:24:14 +0000 (09:24 -0700)
commit4c681a3d22f0018186d83d753be566965c0cf7a5
treed772ea9cb077179b11860c5da0da4536170ed5e3
parent4ce4de1e6618340177eeb0914fc86054c6cc6dca
ARM: Factor out reusable psci_get_cpu_stack_top

This algorithm will be useful on Tegra as well, plus we will need it for
making _psci_target_pc per-CPU.

CC: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Tested-by: Thierry Reding <treding@nvidia.com>
Tested-by: Ian Campbell <ijc@hellion.org.uk>
Signed-off-by: Tom Warren <twarren@nvidia.com>
arch/arm/cpu/armv7/psci.S
arch/arm/cpu/armv7/sunxi/psci.S