ARC: smp: Rename platform hook @init_smp -> @init_cpu_smp
authorVineet Gupta <vgupta@synopsys.com>
Tue, 13 Oct 2015 09:56:00 +0000 (15:26 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Wed, 28 Oct 2015 10:43:40 +0000 (16:13 +0530)
This conveys better that it is called for each cpu

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 7c680910f104a0b7fba0bfe77fac615f758987a7..6ff657a904b61e700421b60423991273df93e1e1 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_smp:          for each CPU (e.g. setup IPI)
+ * @init_cpu_smp:      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_smp)(unsigned int);
+       void                    (*init_cpu_smp)(unsigned int);
 #endif
        void                    (*init_machine)(void);
        void                    (*init_late)(void);
index 156489af75e86b1cc056609f41fae1806d70b73c..1dd8f2685afc66e8a6af5a02c7e0bb50738617dd 100644 (file)
@@ -28,8 +28,8 @@ void __init init_IRQ(void)
 
 #ifdef CONFIG_SMP
        /* Master CPU can initialize it's side of IPI */
-       if (machine_desc->init_smp)
-               machine_desc->init_smp(smp_processor_id());
+       if (machine_desc->init_cpu_smp)
+               machine_desc->init_cpu_smp(smp_processor_id());
 #endif
 }
 
index a59a53f988770c8079785da31b4948fbf0df97c2..35ee18f1de5864a51b206e04c61ebf2e9788b84a 100644 (file)
@@ -131,8 +131,8 @@ void start_kernel_secondary(void)
 
        pr_info("## CPU%u LIVE ##: Executing Code...\n", cpu);
 
-       if (machine_desc->init_smp)
-               machine_desc->init_smp(cpu);
+       if (machine_desc->init_cpu_smp)
+               machine_desc->init_cpu_smp(cpu);
 
        arc_local_timer_setup();