ARM: socfpga: use CPU_METHOD_OF_DECLARE for socfpga_cyclone5
authorDinh Nguyen <dinguyen@opensource.altera.com>
Wed, 3 Jun 2015 02:14:01 +0000 (21:14 -0500)
committerKevin Hilman <khilman@linaro.org>
Wed, 10 Jun 2015 22:35:34 +0000 (15:35 -0700)
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>
arch/arm/mach-socfpga/core.h
arch/arm/mach-socfpga/platsmp.c
arch/arm/mach-socfpga/socfpga.c

index 5913bbb50036162785472f3a355d6520580d0474..38e5cbf37f45b75c756b1ea93316a069a462c5e5 100644 (file)
@@ -39,7 +39,6 @@ extern void socfpga_sysmgr_init(void);
 extern void __iomem *sys_manager_base_addr;
 extern void __iomem *rst_manager_base_addr;
 
-extern struct smp_operations socfpga_smp_ops;
 extern char secondary_trampoline, secondary_trampoline_end;
 
 extern unsigned long socfpga_cpu1start_addr;
index 7886eaeb6723f258bf4549a55da5e5f15e2a63e9..b84c1a12d3aef76bd45ff6d2784a0be82690e1b4 100644 (file)
@@ -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);
index b63dec6e740cc38598c3d0f4d3b56a9180c7c308..a154920b06ab46dc13af74d9741258e0a77f2f15 100644 (file)
@@ -78,7 +78,6 @@ static const char *altera_dt_match[] = {
 DT_MACHINE_START(SOCFPGA, "Altera SOCFPGA")
        .l2c_aux_val    = 0,
        .l2c_aux_mask   = ~0,
-       .smp            = smp_ops(socfpga_smp_ops),
        .init_irq       = socfpga_init_irq,
        .restart        = socfpga_cyclone5_restart,
        .dt_compat      = altera_dt_match,
This page took 0.028618 seconds and 5 git commands to generate.