Skip to contentSkip to conversation

cpumask: arch_send_call_function_ipi_mask: powerpc

PATCH New Rusty Russell 1 participant 1 message Jun 12, 2009 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 4/7 cpumask: arch_send_call_function_ipi_mask: powerpc

From: Rusty Russell <[email protected]>

We're weaning the core code off handing cpumask's around on-stack. This introduces arch_send_call_function_ipi_mask(), and by defining it, the old arch_send_call_function_ipi is defined by the core code.

---
 arch/powerpc/include/asm/smp.h |    3 ++-
 arch/powerpc/kernel/smp.c      |    4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)
arch/powerpc/include/asm/smp.h +2 -1
@@ -139,7 +139,8 @@ extern struct smp_ops_t *smp_ops;
 extern struct smp_ops_t *smp_ops;
 
 extern void arch_send_call_function_single_ipi(int cpu);
-extern void arch_send_call_function_ipi(cpumask_t mask);
+extern void arch_send_call_function_ipi_mask(const struct cpumask *mask);
+#define arch_send_call_function_ipi_mask arch_send_call_function_ipi_mask
 
 #endif /* __ASSEMBLY__ */
 
arch/powerpc/kernel/smp.c +2 -2
@@ -130,11 +130,11 @@ void arch_send_call_function_single_ipi(
 	smp_ops->message_pass(cpu, PPC_MSG_CALL_FUNC_SINGLE);
 }
 
-void arch_send_call_function_ipi(cpumask_t mask)
+void arch_send_call_function_ipi_mask(const struct cpumask *mask)
 {
 	unsigned int cpu;
 
-	for_each_cpu_mask(cpu, mask)
+	for_each_cpu(cpu, mask)
 		smp_ops->message_pass(cpu, PPC_MSG_CALL_FUNCTION);
 }