x86: arch_send_call_function_ipi_mask
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 13 Mar 2009 04:19:51 +0000 (14:49 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 13 Mar 2009 04:19:51 +0000 (14:49 +1030)
Impact: implement new API

We define arch_send_call_function_ipi_mask and generic kernel/smp.c
code creates arch_send_call_function_ipi() as a wrapper.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
arch/x86/include/asm/smp.h

index cfb10f1667fe13f1af4ec6e7baa6a53b9fcba2ad..19e0d88b966d7b9154f46d9426450765dcf3d389 100644 (file)
@@ -121,9 +121,10 @@ static inline void arch_send_call_function_single_ipi(int cpu)
        smp_ops.send_call_func_single_ipi(cpu);
 }
 
-static inline void arch_send_call_function_ipi(cpumask_t mask)
+#define arch_send_call_function_ipi_mask arch_send_call_function_ipi_mask
+static inline void arch_send_call_function_ipi_mask(const struct cpumask *mask)
 {
-       smp_ops.send_call_func_ipi(&mask);
+       smp_ops.send_call_func_ipi(mask);
 }
 
 void cpu_disable_common(void);