ARM: sun9i: smp: Support CPU/cluster power down and hotplugging for cpu1~7
authorChen-Yu Tsai <wens@csie.org>
Wed, 17 Jan 2018 08:46:51 +0000 (16:46 +0800)
committerChen-Yu Tsai <wens@csie.org>
Tue, 20 Feb 2018 03:12:38 +0000 (11:12 +0800)
commit7cbea6327e76f2a7d77d02065a191bb29865a4a9
tree04163eda35149dd0a917ad1d540746f6f862db57
parent745373e3d6ee3e398494d3aebe923b57a90ebadf
ARM: sun9i: smp: Support CPU/cluster power down and hotplugging for cpu1~7

This patch adds common code used to power down all cores and clusters.
The code was previously based on the MCPM framework. It has now been
adapted to hook into struct smp_operations directly, but the code
structure still shows signs of prior work.

The primary core (cpu0) requires setting flags to have the BROM bounce
execution to the SMP software entry code. This is done in a subsequent
patch to keep the changes cleanly separated. By default the ARM SMP code
blocks cpu0 from being turned off, so splitting this out is safe.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
arch/arm/mach-sunxi/mc_smp.c