ARCv2: smp: [plat-*]: No need to explicitly call mcip_init_smp()
authorVineet Gupta <vgupta@synopsys.com>
Mon, 12 Oct 2015 09:45:48 +0000 (15:15 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Wed, 28 Oct 2015 10:43:41 +0000 (16:13 +0530)
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>
arch/arc/include/asm/mcip.h
arch/arc/kernel/mcip.c
arch/arc/plat-axs10x/axs10x.c
arch/arc/plat-sim/platform.c

index c9b2b402a8103b34f3e5c570ba27a36310162559..46f4e5351b2a56e96d440a27201fc612d2e9c195 100644 (file)
@@ -86,8 +86,6 @@ static inline void __mcip_cmd_data(unsigned int cmd, unsigned int param,
        __mcip_cmd(cmd, param);
 }
 
-extern void mcip_init_smp(unsigned int cpu);
-
 #endif
 
 #endif
index 96b0b62ced65b627133a9df0e3c0502125292487..74a9b074ac3e4e64d97ef8e069f73a9104531682 100644 (file)
@@ -19,14 +19,7 @@ static int idu_detected;
 
 static DEFINE_RAW_SPINLOCK(mcip_lock);
 
-/*
- * 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)
+static void mcip_setup_per_cpu(int cpu)
 {
        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 = {
        .info           = smp_cpuinfo_buf,
        .init_early_smp = mcip_probe_n_setup,
+       .init_irq_cpu   = mcip_setup_per_cpu,
        .ipi_send       = mcip_ipi_send,
        .ipi_clear      = mcip_ipi_clear,
 };
index 9ce1999633631983246e276a6957f96199015ce9..1b0f0f458a2bde2438802f431f63748779245c82 100644 (file)
@@ -482,9 +482,6 @@ static const char *axs103_compat[] __initconst = {
 MACHINE_START(AXS103, "axs103")
        .dt_compat      = axs103_compat,
        .init_early     = axs103_early_init,
-#ifdef CONFIG_ARC_MCIP
-       .init_smp       = mcip_init_smp,
-#endif
 MACHINE_END
 
 /*
index e4128cca1b52cac496c870a8d333a78a7009a85f..dde692812bc16ac70bc3bfba24fc14ba71d158a2 100644 (file)
@@ -30,7 +30,4 @@ static const char *simulation_compat[] __initconst = {
 
 MACHINE_START(SIMULATION, "simulation")
        .dt_compat      = simulation_compat,
-#ifdef CONFIG_ARC_MCIP
-       .init_smp       = mcip_init_smp,
-#endif
 MACHINE_END
This page took 0.030325 seconds and 5 git commands to generate.