diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2009-09-25 10:35:28 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2009-09-30 15:47:00 -0400 |
commit | eef34ec514054e4685745236dd5c9658f7aca69e (patch) | |
tree | 6acf1e2c4461a7db5dd16a58c170a86a52d4d70d /arch | |
parent | b533e652df3bbb8f0ea63dc22054edf4cd4155df (diff) |
MIPS: SMP: Inline arch_send_call_function_{single_ipi,ipi_mask}
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/include/asm/smp.h | 15 | ||||
-rw-r--r-- | arch/mips/kernel/smp.c | 13 |
2 files changed, 13 insertions, 15 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); | |||
77 | 77 | ||
78 | extern asmlinkage void smp_call_function_interrupt(void); | 78 | extern asmlinkage void smp_call_function_interrupt(void); |
79 | 79 | ||
80 | extern void arch_send_call_function_single_ipi(int cpu); | 80 | static inline void arch_send_call_function_single_ipi(int cpu) |
81 | extern void arch_send_call_function_ipi_mask(const struct cpumask *mask); | 81 | { |
82 | extern struct plat_smp_ops *mp_ops; /* private */ | ||
83 | |||
84 | mp_ops->send_ipi_mask(&cpumask_of_cpu(cpu), SMP_CALL_FUNCTION); | ||
85 | } | ||
86 | |||
87 | static inline void arch_send_call_function_ipi_mask(const struct cpumask *mask) | ||
88 | { | ||
89 | extern struct plat_smp_ops *mp_ops; /* private */ | ||
90 | |||
91 | mp_ops->send_ipi_mask(mask, SMP_CALL_FUNCTION); | ||
92 | } | ||
82 | 93 | ||
83 | #endif /* __ASM_SMP_H */ | 94 | #endif /* __ASM_SMP_H */ |
diff --git a/arch/mips/kernel/smp.c b/arch/mips/kernel/smp.c index d74b4dd2dfb2..e72e6844d134 100644 --- a/arch/mips/kernel/smp.c +++ b/arch/mips/kernel/smp.c | |||
@@ -127,19 +127,6 @@ asmlinkage __cpuinit void start_secondary(void) | |||
127 | cpu_idle(); | 127 | cpu_idle(); |
128 | } | 128 | } |
129 | 129 | ||
130 | void arch_send_call_function_ipi_mask(const struct cpumask *mask) | ||
131 | { | ||
132 | mp_ops->send_ipi_mask(mask, SMP_CALL_FUNCTION); | ||
133 | } | ||
134 | |||
135 | /* | ||
136 | * We reuse the same vector for the single IPI | ||
137 | */ | ||
138 | void arch_send_call_function_single_ipi(int cpu) | ||
139 | { | ||
140 | mp_ops->send_ipi_mask(&cpumask_of_cpu(cpu), SMP_CALL_FUNCTION); | ||
141 | } | ||
142 | |||
143 | /* | 130 | /* |
144 | * Call into both interrupt handlers, as we share the IPI for them | 131 | * Call into both interrupt handlers, as we share the IPI for them |
145 | */ | 132 | */ |