]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: sunxi: mc-smp: Use DT enable-method for sun9i A80 SMP
authorChen-Yu Tsai <wens@csie.org>
Thu, 8 Mar 2018 15:00:10 +0000 (23:00 +0800)
committerChen-Yu Tsai <wens@csie.org>
Sat, 10 Mar 2018 08:14:46 +0000 (16:14 +0800)
commitb4e1533c6c8643e97b61b2bfdd54c22107d83bad
treed45c77e057e8a5994b4f69b9158c844a5b44badb
parenta229a6b87c002909f879bec352ceb39885a7058f
ARM: sunxi: mc-smp: Use DT enable-method for sun9i A80 SMP

Instead of having an early init function check the machine compatible
and installing multi-cluster SMP support for the A80 if it matches,
use a new cpu enable-method string. This makes the platform support
future proof in case anyone manages to add PSCI support.

The original init code for the SMP support is changed into the
.prepare_cpus callback in the smp_operations structure. Instead of
panicing when resources are missing like on some platforms, our code
merely guards against engaging SMP or CPU hotplug and returns an error.

Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Documentation/devicetree/bindings/arm/cpus.txt
arch/arm/mach-sunxi/mc_smp.c