summaryrefslogtreecommitdiffstats
path: root/arch/arc/kernel/smp.c
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2013-11-25 10:18:39 +0100
committerVineet Gupta <vgupta@synopsys.com>2013-12-23 07:35:04 +0100
commit53dc110c97436dcf2a758091c98093657116e91c (patch)
tree0cae1eca192ec49cec1dcff3809eb896e8b483f2 /arch/arc/kernel/smp.c
parentARC: [SMP] IPI ACK interface doesn't need "self" cpu-id (diff)
downloadlinux-53dc110c97436dcf2a758091c98093657116e91c.tar.xz
linux-53dc110c97436dcf2a758091c98093657116e91c.zip
ARC: [SMP] cpu halt interface doesn't need "self" cpu-id
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/kernel/smp.c')
-rw-r--r--arch/arc/kernel/smp.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/arc/kernel/smp.c b/arch/arc/kernel/smp.c
index 9f771b5d66c6..467dd9cca18f 100644
--- a/arch/arc/kernel/smp.c
+++ b/arch/arc/kernel/smp.c
@@ -270,12 +270,12 @@ void arch_send_call_function_ipi_mask(const struct cpumask *mask)
/*
* ipi_cpu_stop - handle IPI from smp_send_stop()
*/
-static void ipi_cpu_stop(unsigned int cpu)
+static void ipi_cpu_stop(void)
{
machine_halt();
}
-static inline void __do_IPI(unsigned long *ops, struct ipi_data *ipi, int cpu)
+static inline void __do_IPI(unsigned long *ops, struct ipi_data *ipi)
{
unsigned long msg = 0;
@@ -292,11 +292,10 @@ static inline void __do_IPI(unsigned long *ops, struct ipi_data *ipi, int cpu)
break;
case IPI_CPU_STOP:
- ipi_cpu_stop(cpu);
+ ipi_cpu_stop();
break;
}
} while (msg < BITS_PER_LONG);
-
}
/*
@@ -317,7 +316,7 @@ irqreturn_t do_IPI(int irq, void *dev_id)
* And do we need to move ipi_clean inside
*/
while ((ops = xchg(&ipi->bits, 0)) != 0)
- __do_IPI(&ops, ipi, cpu);
+ __do_IPI(&ops, ipi);
return IRQ_HANDLED;
}