diff options
author | Dinh Nguyen <dinguyen@opensource.altera.com> | 2015-06-02 21:14:01 -0500 |
---|---|---|
committer | Kevin Hilman <khilman@linaro.org> | 2015-06-10 15:35:34 -0700 |
commit | 5f763ef80d4dff7f2aa519a31472b03499e2c2e1 (patch) | |
tree | 1186476bff18165157fc7e025e8e2e8463b8ec92 /arch/arm/mach-socfpga/platsmp.c | |
parent | 122694a0c71281cf2b349af41309c3caf5f31d61 (diff) | |
download | talos-obmc-linux-5f763ef80d4dff7f2aa519a31472b03499e2c2e1.tar.gz talos-obmc-linux-5f763ef80d4dff7f2aa519a31472b03499e2c2e1.zip |
ARM: socfpga: use CPU_METHOD_OF_DECLARE for socfpga_cyclone5
Convert cyclone5/arria5 to use CPU_METHOD_OF_DECLARE for smp operations.
Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
Signed-off-by: Kevin Hilman <khilman@linaro.org>
Diffstat (limited to 'arch/arm/mach-socfpga/platsmp.c')
-rw-r--r-- | arch/arm/mach-socfpga/platsmp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-socfpga/platsmp.c b/arch/arm/mach-socfpga/platsmp.c index 7886eaeb6723..b84c1a12d3ae 100644 --- a/arch/arm/mach-socfpga/platsmp.c +++ b/arch/arm/mach-socfpga/platsmp.c @@ -83,10 +83,12 @@ static void socfpga_cpu_die(unsigned int cpu) cpu_do_idle(); } -struct smp_operations socfpga_smp_ops __initdata = { +static struct smp_operations socfpga_smp_ops __initdata = { .smp_prepare_cpus = socfpga_smp_prepare_cpus, .smp_boot_secondary = socfpga_boot_secondary, #ifdef CONFIG_HOTPLUG_CPU .cpu_die = socfpga_cpu_die, #endif }; + +CPU_METHOD_OF_DECLARE(socfpga_smp, "altr,socfpga-smp", &socfpga_smp_ops); |