]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: mvebu: use dt_fixup to provide fallback for enable-method
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Thu, 26 Jul 2018 03:48:56 +0000 (15:48 +1200)
committerGregory CLEMENT <gregory.clement@bootlin.com>
Mon, 24 Sep 2018 15:15:24 +0000 (17:15 +0200)
commit02784ab67052ea7904896f034ad2f32c2c754b30
tree68d430da14216f4a905d1b41e7e64ea43f388c93
parentf030a7bb7b1f7de16c1c716a587185e209e25800
ARM: mvebu: use dt_fixup to provide fallback for enable-method

We need to maintain backwards compatibility with device trees that don't
define an enable method. At the same time we want the device tree to be
able to specify an enable-method and have it stick.

Previously by having smp assigned in the DT_MACHINE definition this
would be picked up by setup_arch() and override whatever
arm_dt_init_cpu_maps() had configured. Now we move the initial
assignment of default smp_ops to a dt_fixup and let
arm_dt_init_cpu_maps() override that if the device tree defines an
enable-method.

[olof@lixom.net: Wrap set_smp_ops() in CONFIG_SMP.]
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Tested-by: Gregory CLEMENT <gregory.clement@bootlin.com> (on AX3)
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
arch/arm/mach-mvebu/board-v7.c