diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2014-04-14 09:53:59 -0400 |
---|---|---|
committer | Jason Cooper <jason@lakedaemon.net> | 2014-05-08 12:07:45 -0400 |
commit | 2c9b2240bee340711048589023eb057f23fda356 (patch) | |
tree | 24ed635e0f426b0dee02a49d0a272b099456b37e | |
parent | 05ad690608098b469d6052c700d96c35e697a955 (diff) |
ARM: mvebu: use CPU_METHOD_OF_DECLARE for SMP on Armada XP
This commit adds the CPU_METHOD_OF_DECLARE declaration for the Armada
XP SMP operations. Note that the .smp_ops field of Armada XP
DT_MACHINE structure is kept, in order to ensure we remain compatible
with older Device Trees that do not include the "enable-method"
property for the CPUs.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Link: https://lkml.kernel.org/r/1397483648-26611-3-git-send-email-thomas.petazzoni@free-electrons.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
-rw-r--r-- | Documentation/devicetree/bindings/arm/cpus.txt | 1 | ||||
-rw-r--r-- | arch/arm/mach-mvebu/platsmp.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/arm/cpus.txt b/Documentation/devicetree/bindings/arm/cpus.txt index 333f4aea3029..0dc59c36ad63 100644 --- a/Documentation/devicetree/bindings/arm/cpus.txt +++ b/Documentation/devicetree/bindings/arm/cpus.txt | |||
@@ -185,6 +185,7 @@ nodes to be present and contain the properties described below. | |||
185 | "qcom,gcc-msm8660" | 185 | "qcom,gcc-msm8660" |
186 | "qcom,kpss-acc-v1" | 186 | "qcom,kpss-acc-v1" |
187 | "qcom,kpss-acc-v2" | 187 | "qcom,kpss-acc-v2" |
188 | "marvell,armada-xp-smp" | ||
188 | 189 | ||
189 | - cpu-release-addr | 190 | - cpu-release-addr |
190 | Usage: required for systems that have an "enable-method" | 191 | Usage: required for systems that have an "enable-method" |
diff --git a/arch/arm/mach-mvebu/platsmp.c b/arch/arm/mach-mvebu/platsmp.c index e98075f7175a..e01ae51bee56 100644 --- a/arch/arm/mach-mvebu/platsmp.c +++ b/arch/arm/mach-mvebu/platsmp.c | |||
@@ -138,3 +138,6 @@ struct smp_operations armada_xp_smp_ops __initdata = { | |||
138 | .cpu_die = armada_xp_cpu_die, | 138 | .cpu_die = armada_xp_cpu_die, |
139 | #endif | 139 | #endif |
140 | }; | 140 | }; |
141 | |||
142 | CPU_METHOD_OF_DECLARE(armada_xp_smp, "marvell,armada-xp-smp", | ||
143 | &armada_xp_smp_ops); | ||