aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/common
diff options
context:
space:
mode:
authorNicolas Pitre <nicolas.pitre@linaro.org>2013-04-09 01:29:17 -0400
committerNicolas Pitre <nicolas.pitre@linaro.org>2013-04-24 10:37:03 -0400
commita7eb7c6f9a657a01a8359edae31bbeacd18b072c (patch)
tree23ec91e05f9192cceb6316e98ebd2f46f2786dd4 /arch/arm/common
parent9ff221bad8869f73141c6a3c187afe2e933c991f (diff)
ARM: mcpm: provide an interface to set the SMP ops at run time
This is cleaner than exporting the mcpm_smp_ops structure. Signed-off-by: Nicolas Pitre <nico@linaro.org> Acked-by: Jon Medhurst <tixy@linaro.org>
Diffstat (limited to 'arch/arm/common')
-rw-r--r--arch/arm/common/mcpm_platsmp.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm/common/mcpm_platsmp.c b/arch/arm/common/mcpm_platsmp.c
index e7e3235b8b64..52b88d81b7bb 100644
--- a/arch/arm/common/mcpm_platsmp.c
+++ b/arch/arm/common/mcpm_platsmp.c
@@ -76,7 +76,7 @@ static void mcpm_cpu_die(unsigned int cpu)
76 76
77#endif 77#endif
78 78
79struct smp_operations __initdata mcpm_smp_ops = { 79static struct smp_operations __initdata mcpm_smp_ops = {
80 .smp_init_cpus = simple_smp_init_cpus, 80 .smp_init_cpus = simple_smp_init_cpus,
81 .smp_boot_secondary = mcpm_boot_secondary, 81 .smp_boot_secondary = mcpm_boot_secondary,
82 .smp_secondary_init = mcpm_secondary_init, 82 .smp_secondary_init = mcpm_secondary_init,
@@ -85,3 +85,8 @@ struct smp_operations __initdata mcpm_smp_ops = {
85 .cpu_die = mcpm_cpu_die, 85 .cpu_die = mcpm_cpu_die,
86#endif 86#endif
87}; 87};
88
89void __init mcpm_smp_set_ops(void)
90{
91 smp_set_ops(&mcpm_smp_ops);
92}