aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2010-12-20 09:47:19 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-12-20 10:06:56 -0500
commite3fbb087650df130788d8e3ac29875ee56819249 (patch)
tree4d85c79146353a51946198f1dbf26e47322bd47b /arch/arm/kernel
parent0df7095205cbf6ea1cdfe6254e0d6a3b823caa3b (diff)
ARM: SMP: remove send_ipi_message()
send_ipi_message() does nothing except call smp_cross_call(). As this is a static function, nothing external to this file calls it, so we can easily clean up this now unnecessary indirection. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel')
-rw-r--r--arch/arm/kernel/smp.c18
1 files changed, 5 insertions, 13 deletions
diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c
index 4878e51561f9..3772cfc6953a 100644
--- a/arch/arm/kernel/smp.c
+++ b/arch/arm/kernel/smp.c
@@ -381,22 +381,14 @@ void __init smp_prepare_boot_cpu(void)
381 per_cpu(cpu_data, cpu).idle = current; 381 per_cpu(cpu_data, cpu).idle = current;
382} 382}
383 383
384static void send_ipi_message(const struct cpumask *mask, enum ipi_msg_type msg)
385{
386 /*
387 * Call the platform specific cross-CPU call function.
388 */
389 smp_cross_call(mask, msg);
390}
391
392void arch_send_call_function_ipi_mask(const struct cpumask *mask) 384void arch_send_call_function_ipi_mask(const struct cpumask *mask)
393{ 385{
394 send_ipi_message(mask, IPI_CALL_FUNC); 386 smp_cross_call(mask, IPI_CALL_FUNC);
395} 387}
396 388
397void arch_send_call_function_single_ipi(int cpu) 389void arch_send_call_function_single_ipi(int cpu)
398{ 390{
399 send_ipi_message(cpumask_of(cpu), IPI_CALL_FUNC_SINGLE); 391 smp_cross_call(cpumask_of(cpu), IPI_CALL_FUNC_SINGLE);
400} 392}
401 393
402void show_ipi_list(struct seq_file *p) 394void show_ipi_list(struct seq_file *p)
@@ -454,7 +446,7 @@ asmlinkage void __exception do_local_timer(struct pt_regs *regs)
454#ifdef CONFIG_GENERIC_CLOCKEVENTS_BROADCAST 446#ifdef CONFIG_GENERIC_CLOCKEVENTS_BROADCAST
455static void smp_timer_broadcast(const struct cpumask *mask) 447static void smp_timer_broadcast(const struct cpumask *mask)
456{ 448{
457 send_ipi_message(mask, IPI_TIMER); 449 smp_cross_call(mask, IPI_TIMER);
458} 450}
459#else 451#else
460#define smp_timer_broadcast NULL 452#define smp_timer_broadcast NULL
@@ -560,7 +552,7 @@ asmlinkage void __exception do_IPI(int ipinr, struct pt_regs *regs)
560 552
561void smp_send_reschedule(int cpu) 553void smp_send_reschedule(int cpu)
562{ 554{
563 send_ipi_message(cpumask_of(cpu), IPI_RESCHEDULE); 555 smp_cross_call(cpumask_of(cpu), IPI_RESCHEDULE);
564} 556}
565 557
566void smp_send_stop(void) 558void smp_send_stop(void)
@@ -568,7 +560,7 @@ void smp_send_stop(void)
568 cpumask_t mask = cpu_online_map; 560 cpumask_t mask = cpu_online_map;
569 cpu_clear(smp_processor_id(), mask); 561 cpu_clear(smp_processor_id(), mask);
570 if (!cpus_empty(mask)) 562 if (!cpus_empty(mask))
571 send_ipi_message(&mask, IPI_CPU_STOP); 563 smp_cross_call(&mask, IPI_CPU_STOP);
572} 564}
573 565
574/* 566/*