mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 22:21:21 +00:00
ARCv2: smp: [plat-*]: No need to explicitly call mcip_init_smp()
MCIP now registers it's own per cpu setup routine (for IPI IRQ request) using smp_ops.init_irq_cpu(). So no need for platforms to do that. This now completely decouples platforms from MCIP. Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
This commit is contained in:
parent
286130ebf1
commit
aa0efcde45
4 changed files with 2 additions and 16 deletions
|
@ -86,8 +86,6 @@ static inline void __mcip_cmd_data(unsigned int cmd, unsigned int param,
|
||||||
__mcip_cmd(cmd, param);
|
__mcip_cmd(cmd, param);
|
||||||
}
|
}
|
||||||
|
|
||||||
extern void mcip_init_smp(unsigned int cpu);
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -19,14 +19,7 @@ static int idu_detected;
|
||||||
|
|
||||||
static DEFINE_RAW_SPINLOCK(mcip_lock);
|
static DEFINE_RAW_SPINLOCK(mcip_lock);
|
||||||
|
|
||||||
/*
|
static void mcip_setup_per_cpu(int cpu)
|
||||||
* Any SMP specific init any CPU does when it comes up.
|
|
||||||
* Here we setup the CPU to enable Inter-Processor-Interrupts
|
|
||||||
* Called for each CPU
|
|
||||||
* -Master : init_IRQ()
|
|
||||||
* -Other(s) : start_kernel_secondary()
|
|
||||||
*/
|
|
||||||
void mcip_init_smp(unsigned int cpu)
|
|
||||||
{
|
{
|
||||||
smp_ipi_irq_setup(cpu, IPI_IRQ);
|
smp_ipi_irq_setup(cpu, IPI_IRQ);
|
||||||
}
|
}
|
||||||
|
@ -139,6 +132,7 @@ static void mcip_probe_n_setup(void)
|
||||||
struct plat_smp_ops plat_smp_ops = {
|
struct plat_smp_ops plat_smp_ops = {
|
||||||
.info = smp_cpuinfo_buf,
|
.info = smp_cpuinfo_buf,
|
||||||
.init_early_smp = mcip_probe_n_setup,
|
.init_early_smp = mcip_probe_n_setup,
|
||||||
|
.init_irq_cpu = mcip_setup_per_cpu,
|
||||||
.ipi_send = mcip_ipi_send,
|
.ipi_send = mcip_ipi_send,
|
||||||
.ipi_clear = mcip_ipi_clear,
|
.ipi_clear = mcip_ipi_clear,
|
||||||
};
|
};
|
||||||
|
|
|
@ -482,9 +482,6 @@ static const char *axs103_compat[] __initconst = {
|
||||||
MACHINE_START(AXS103, "axs103")
|
MACHINE_START(AXS103, "axs103")
|
||||||
.dt_compat = axs103_compat,
|
.dt_compat = axs103_compat,
|
||||||
.init_early = axs103_early_init,
|
.init_early = axs103_early_init,
|
||||||
#ifdef CONFIG_ARC_MCIP
|
|
||||||
.init_smp = mcip_init_smp,
|
|
||||||
#endif
|
|
||||||
MACHINE_END
|
MACHINE_END
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -30,7 +30,4 @@ static const char *simulation_compat[] __initconst = {
|
||||||
|
|
||||||
MACHINE_START(SIMULATION, "simulation")
|
MACHINE_START(SIMULATION, "simulation")
|
||||||
.dt_compat = simulation_compat,
|
.dt_compat = simulation_compat,
|
||||||
#ifdef CONFIG_ARC_MCIP
|
|
||||||
.init_smp = mcip_init_smp,
|
|
||||||
#endif
|
|
||||||
MACHINE_END
|
MACHINE_END
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue