Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARC: rename smp operation init_irq_cpu() to init_per_cpu()

This will better reflect its description i.e. "any needed setup..."
and not just do an "IPI request".

Signed-off-by: Noam Camus <noamc@ezchip.com>
Acked-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>

authored by

Noam Camus and committed by
Vineet Gupta
b474a023 323f41f9

+7 -7
+2 -2
arch/arc/include/asm/smp.h
··· 48 48 * @init_early_smp: A SMP specific h/w block can init itself 49 49 * Could be common across platforms so not covered by 50 50 * mach_desc->init_early() 51 - * @init_irq_cpu: Called for each core so SMP h/w block driver can do 51 + * @init_per_cpu: Called for each core so SMP h/w block driver can do 52 52 * any needed setup per cpu (e.g. IPI request) 53 53 * @cpu_kick: For Master to kickstart a cpu (optionally at a PC) 54 54 * @ipi_send: To send IPI to a @cpu ··· 57 57 struct plat_smp_ops { 58 58 const char *info; 59 59 void (*init_early_smp)(void); 60 - void (*init_irq_cpu)(int cpu); 60 + void (*init_per_cpu)(int cpu); 61 61 void (*cpu_kick)(int cpu, unsigned long pc); 62 62 void (*ipi_send)(int cpu); 63 63 void (*ipi_clear)(int irq);
+2 -2
arch/arc/kernel/irq.c
··· 29 29 30 30 #ifdef CONFIG_SMP 31 31 /* a SMP H/w block could do IPI IRQ request here */ 32 - if (plat_smp_ops.init_irq_cpu) 33 - plat_smp_ops.init_irq_cpu(smp_processor_id()); 32 + if (plat_smp_ops.init_per_cpu) 33 + plat_smp_ops.init_per_cpu(smp_processor_id()); 34 34 35 35 if (machine_desc->init_cpu_smp) 36 36 machine_desc->init_cpu_smp(smp_processor_id());
+1 -1
arch/arc/kernel/mcip.c
··· 132 132 struct plat_smp_ops plat_smp_ops = { 133 133 .info = smp_cpuinfo_buf, 134 134 .init_early_smp = mcip_probe_n_setup, 135 - .init_irq_cpu = mcip_setup_per_cpu, 135 + .init_per_cpu = mcip_setup_per_cpu, 136 136 .ipi_send = mcip_ipi_send, 137 137 .ipi_clear = mcip_ipi_clear, 138 138 };
+2 -2
arch/arc/kernel/smp.c
··· 132 132 pr_info("## CPU%u LIVE ##: Executing Code...\n", cpu); 133 133 134 134 /* Some SMP H/w setup - for each cpu */ 135 - if (plat_smp_ops.init_irq_cpu) 136 - plat_smp_ops.init_irq_cpu(cpu); 135 + if (plat_smp_ops.init_per_cpu) 136 + plat_smp_ops.init_per_cpu(cpu); 137 137 138 138 if (machine_desc->init_cpu_smp) 139 139 machine_desc->init_cpu_smp(cpu);