diff options
author | Martin Blumenstingl <martin.blumenstingl@googlemail.com> | 2017-09-17 18:45:20 +0200 |
---|---|---|
committer | Kevin Hilman <khilman@baylibre.com> | 2017-10-29 08:29:30 -0700 |
commit | 936a4174435b376557ee2610eae03592baeb9016 (patch) | |
tree | b8d99a90ee1526defb468a57775f679dd4efa2b4 /arch/arm/Makefile | |
parent | 0606326effc66201223de26d71c2779a108ee452 (diff) |
ARM: smp_scu: allow the platform code to read the SCU CPU status
On Amlogic Meson8 / Meson8m2 (both Cortex-A9) and Meson8b (Cortex-A5)
the CPU hotplug code needs to wait until the SCU status of the CPU that
is being taken offline is SCU_PM_POWEROFF.
Provide a utility function (which can be invoked for example from
.cpu_kill()) which allows reading the SCU status of a CPU.
While here, replace the magic number 0x3 with a preprocessor macro
(SCU_CPU_STATUS_MASK) so we don't have to duplicate this magic number in
the new function.
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Acked-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Diffstat (limited to 'arch/arm/Makefile')
0 files changed, 0 insertions, 0 deletions