ARC: smp: Rename platform hook @init_cpu_smp -> @init_per_cpu
authorVineet Gupta <vgupta@synopsys.com>
Thu, 17 Dec 2015 06:52:21 +0000 (12:22 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Thu, 17 Dec 2015 07:26:56 +0000 (12:56 +0530)
Makes it similar to smp_ops which also has callback with same name

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/include/asm/mach_desc.h
arch/arc/kernel/irq.c
arch/arc/kernel/smp.c

index 6ff657a904b61e700421b60423991273df93e1e1..c28e6c347b4900217ad48053c69679bb3da8b607 100644 (file)
@@ -23,7 +23,7 @@
  * @dt_compat:         Array of device tree 'compatible' strings
  *                     (XXX: although only 1st entry is looked at)
  * @init_early:                Very early callback [called from setup_arch()]
- * @init_cpu_smp:      for each CPU as it is coming up (SMP as well as UP)
+ * @init_per_cpu:      for each CPU as it is coming up (SMP as well as UP)
  *                     [(M):init_IRQ(), (o):start_kernel_secondary()]
  * @init_machine:      arch initcall level callback (e.g. populate static
  *                     platform devices or parse Devicetree)
@@ -35,7 +35,7 @@ struct machine_desc {
        const char              **dt_compat;
        void                    (*init_early)(void);
 #ifdef CONFIG_SMP
-       void                    (*init_cpu_smp)(unsigned int);
+       void                    (*init_per_cpu)(unsigned int);
 #endif
        void                    (*init_machine)(void);
        void                    (*init_late)(void);
index 3917fe7e62fcbc80746ed5604116bcb099bfddbb..ba17f85285cfe85c53ba6c93db08d620c7109fb9 100644 (file)
@@ -32,8 +32,8 @@ void __init init_IRQ(void)
        if (plat_smp_ops.init_per_cpu)
                plat_smp_ops.init_per_cpu(smp_processor_id());
 
-       if (machine_desc->init_cpu_smp)
-               machine_desc->init_cpu_smp(smp_processor_id());
+       if (machine_desc->init_per_cpu)
+               machine_desc->init_per_cpu(smp_processor_id());
 #endif
 }
 
index 0b061a47515837154bc17977f75066532b8fa308..ef6e9e15b82abf72d946ab45c3e20096854605c5 100644 (file)
@@ -135,8 +135,8 @@ void start_kernel_secondary(void)
        if (plat_smp_ops.init_per_cpu)
                plat_smp_ops.init_per_cpu(cpu);
 
-       if (machine_desc->init_cpu_smp)
-               machine_desc->init_cpu_smp(cpu);
+       if (machine_desc->init_per_cpu)
+               machine_desc->init_per_cpu(cpu);
 
        arc_local_timer_setup();