Skip to contentSkip to conversation

cpumask: arch_send_call_function_ipi_mask: s390

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

lore
Share & tools
lore
#0 lore raw

PATCH 6/7 cpumask: arch_send_call_function_ipi_mask: s390

We're weaning the core code off handing cpumask's around on-stack. This introduces arch_send_call_function_ipi_mask().

---
 arch/s390/include/asm/smp.h |    3 ++-
 arch/s390/kernel/smp.c      |    4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)
arch/s390/include/asm/smp.h +2 -1
@@ -87,7 +87,8 @@ extern struct mutex smp_cpu_state_mutex;
 extern int smp_cpu_polarization[];
 
 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
 
arch/s390/kernel/smp.c +2 -2
@@ -129,11 +129,11 @@ static void smp_ext_bitcall(int cpu, ec_
 		udelay(10);
 }
 
-void arch_send_call_function_ipi(cpumask_t mask)
+void arch_send_call_function_ipi_mask(const struct cpumask *mask)
 {
 	int cpu;
 
-	for_each_cpu_mask(cpu, mask)
+	for_each_cpu(cpu, mask)
 		smp_ext_bitcall(cpu, ec_call_function);
 }