Commit 8721a7f5 authored by Vineet Gupta's avatar Vineet Gupta

ARC: smp: Rename platform hook @init_smp -> @init_cpu_smp

This conveys better that it is called for each cpu
Signed-off-by: default avatarVineet Gupta <vgupta@synopsys.com>
parent 26b8f996
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
* @dt_compat: Array of device tree 'compatible' strings * @dt_compat: Array of device tree 'compatible' strings
* (XXX: although only 1st entry is looked at) * (XXX: although only 1st entry is looked at)
* @init_early: Very early callback [called from setup_arch()] * @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()] * [(M):init_IRQ(), (o):start_kernel_secondary()]
* @init_machine: arch initcall level callback (e.g. populate static * @init_machine: arch initcall level callback (e.g. populate static
* platform devices or parse Devicetree) * platform devices or parse Devicetree)
...@@ -35,7 +35,7 @@ struct machine_desc { ...@@ -35,7 +35,7 @@ struct machine_desc {
const char **dt_compat; const char **dt_compat;
void (*init_early)(void); void (*init_early)(void);
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
void (*init_smp)(unsigned int); void (*init_cpu_smp)(unsigned int);
#endif #endif
void (*init_machine)(void); void (*init_machine)(void);
void (*init_late)(void); void (*init_late)(void);
......
...@@ -28,8 +28,8 @@ void __init init_IRQ(void) ...@@ -28,8 +28,8 @@ void __init init_IRQ(void)
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
/* Master CPU can initialize it's side of IPI */ /* Master CPU can initialize it's side of IPI */
if (machine_desc->init_smp) if (machine_desc->init_cpu_smp)
machine_desc->init_smp(smp_processor_id()); machine_desc->init_cpu_smp(smp_processor_id());
#endif #endif
} }
......
...@@ -131,8 +131,8 @@ void start_kernel_secondary(void) ...@@ -131,8 +131,8 @@ void start_kernel_secondary(void)
pr_info("## CPU%u LIVE ##: Executing Code...\n", cpu); pr_info("## CPU%u LIVE ##: Executing Code...\n", cpu);
if (machine_desc->init_smp) if (machine_desc->init_cpu_smp)
machine_desc->init_smp(cpu); machine_desc->init_cpu_smp(cpu);
arc_local_timer_setup(); arc_local_timer_setup();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment