summaryrefslogtreecommitdiffstats
path: root/arch/mips/include/asm/smp.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2009-09-25 15:35:28 +0100
committerRalf Baechle <ralf@linux-mips.org>2009-09-30 21:47:00 +0200
commiteef34ec514054e4685745236dd5c9658f7aca69e (patch)
tree6acf1e2c4461a7db5dd16a58c170a86a52d4d70d /arch/mips/include/asm/smp.h
parentb533e652df3bbb8f0ea63dc22054edf4cd4155df (diff)
downloadtalos-op-linux-eef34ec514054e4685745236dd5c9658f7aca69e.tar.gz
talos-op-linux-eef34ec514054e4685745236dd5c9658f7aca69e.zip
MIPS: SMP: Inline arch_send_call_function_{single_ipi,ipi_mask}
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/smp.h')
-rw-r--r--arch/mips/include/asm/smp.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/arch/mips/include/asm/smp.h b/arch/mips/include/asm/smp.h
index e15f11a09311..af42385245d5 100644
--- a/arch/mips/include/asm/smp.h
+++ b/arch/mips/include/asm/smp.h
@@ -77,7 +77,18 @@ extern void play_dead(void);
extern asmlinkage void smp_call_function_interrupt(void);
-extern void arch_send_call_function_single_ipi(int cpu);
-extern void arch_send_call_function_ipi_mask(const struct cpumask *mask);
+static inline void arch_send_call_function_single_ipi(int cpu)
+{
+ extern struct plat_smp_ops *mp_ops; /* private */
+
+ mp_ops->send_ipi_mask(&cpumask_of_cpu(cpu), SMP_CALL_FUNCTION);
+}
+
+static inline void arch_send_call_function_ipi_mask(const struct cpumask *mask)
+{
+ extern struct plat_smp_ops *mp_ops; /* private */
+
+ mp_ops->send_ipi_mask(mask, SMP_CALL_FUNCTION);
+}
#endif /* __ASM_SMP_H */
OpenPOWER on IntegriCloud