diff options
| author | Vineet Gupta <vgupta@synopsys.com> | 2013-11-25 04:18:39 -0500 |
|---|---|---|
| committer | Vineet Gupta <vgupta@synopsys.com> | 2013-12-23 01:35:04 -0500 |
| commit | 53dc110c97436dcf2a758091c98093657116e91c (patch) | |
| tree | 0cae1eca192ec49cec1dcff3809eb896e8b483f2 /arch/arc/kernel | |
| parent | ccdaa6e0c86d8f48bf87439e4d6942b7a3e58899 (diff) | |
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')
| -rw-r--r-- | arch/arc/kernel/smp.c | 9 |
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) | |||
| 270 | /* | 270 | /* |
| 271 | * ipi_cpu_stop - handle IPI from smp_send_stop() | 271 | * ipi_cpu_stop - handle IPI from smp_send_stop() |
| 272 | */ | 272 | */ |
| 273 | static void ipi_cpu_stop(unsigned int cpu) | 273 | static void ipi_cpu_stop(void) |
| 274 | { | 274 | { |
| 275 | machine_halt(); | 275 | machine_halt(); |
| 276 | } | 276 | } |
| 277 | 277 | ||
| 278 | static inline void __do_IPI(unsigned long *ops, struct ipi_data *ipi, int cpu) | 278 | static inline void __do_IPI(unsigned long *ops, struct ipi_data *ipi) |
| 279 | { | 279 | { |
| 280 | unsigned long msg = 0; | 280 | unsigned long msg = 0; |
| 281 | 281 | ||
| @@ -292,11 +292,10 @@ static inline void __do_IPI(unsigned long *ops, struct ipi_data *ipi, int cpu) | |||
| 292 | break; | 292 | break; |
| 293 | 293 | ||
| 294 | case IPI_CPU_STOP: | 294 | case IPI_CPU_STOP: |
| 295 | ipi_cpu_stop(cpu); | 295 | ipi_cpu_stop(); |
| 296 | break; | 296 | break; |
| 297 | } | 297 | } |
| 298 | } while (msg < BITS_PER_LONG); | 298 | } while (msg < BITS_PER_LONG); |
| 299 | |||
| 300 | } | 299 | } |
| 301 | 300 | ||
| 302 | /* | 301 | /* |
| @@ -317,7 +316,7 @@ irqreturn_t do_IPI(int irq, void *dev_id) | |||
| 317 | * And do we need to move ipi_clean inside | 316 | * And do we need to move ipi_clean inside |
| 318 | */ | 317 | */ |
| 319 | while ((ops = xchg(&ipi->bits, 0)) != 0) | 318 | while ((ops = xchg(&ipi->bits, 0)) != 0) |
| 320 | __do_IPI(&ops, ipi, cpu); | 319 | __do_IPI(&ops, ipi); |
| 321 | 320 | ||
| 322 | return IRQ_HANDLED; | 321 | return IRQ_HANDLED; |
| 323 | } | 322 | } |
