]> err.no Git - linux-2.6/commitdiff
x86: unify smp_call_function_mask
authorGlauber Costa <gcosta@redhat.com>
Mon, 3 Mar 2008 17:12:35 +0000 (14:12 -0300)
committerIngo Molnar <mingo@elte.hu>
Thu, 17 Apr 2008 15:40:53 +0000 (17:40 +0200)
definition is moved to common header, x86_64 function name
now is native_smp_call_function_mask

Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/smp_64.c
include/asm-x86/smp.h
include/asm-x86/smp_32.h

index fd1816123496473514a8c45aeec12497b5832c4e..225b765db5a2517314b68691e08631482062f080 100644 (file)
@@ -386,9 +386,9 @@ static int __smp_call_function_mask(cpumask_t mask,
  * You must not call this function with disabled interrupts or from a
  * hardware interrupt handler or from a bottom half handler.
  */
-int smp_call_function_mask(cpumask_t mask,
-                          void (*func)(void *), void *info,
-                          int wait)
+int native_smp_call_function_mask(cpumask_t mask,
+                                 void (*func)(void *), void *info,
+                                 int wait)
 {
        int ret;
 
@@ -531,5 +531,6 @@ asmlinkage void smp_call_function_interrupt(void)
 
 struct smp_ops smp_ops = {
        .smp_send_reschedule = native_smp_send_reschedule,
+       .smp_call_function_mask = native_smp_call_function_mask,
 };
 EXPORT_SYMBOL_GPL(smp_ops);
index 28f33c03d79382e36ed96b754f373b53e1f2e1c6..d9782f4f469ea59fce5d0806fa6f9f765b2cb911 100644 (file)
@@ -28,6 +28,13 @@ static inline void smp_send_reschedule(int cpu)
 {
        smp_ops.smp_send_reschedule(cpu);
 }
+
+static inline int smp_call_function_mask(cpumask_t mask,
+                                        void (*func) (void *info), void *info,
+                                        int wait)
+{
+       return smp_ops.smp_call_function_mask(mask, func, info, wait);
+}
 #endif
 
 #ifdef CONFIG_X86_32
index c60a3dd3e802ceb75da84b6a0d0869bb75aea27c..d9337ee8c2fcb24b54dac6d83bd5d33a79c2588c 100644 (file)
@@ -60,12 +60,6 @@ static inline void smp_send_stop(void)
 {
        smp_ops.smp_send_stop();
 }
-static inline int smp_call_function_mask(cpumask_t mask,
-                                        void (*func) (void *info), void *info,
-                                        int wait)
-{
-       return smp_ops.smp_call_function_mask(mask, func, info, wait);
-}
 
 void native_smp_prepare_boot_cpu(void);
 void native_smp_prepare_cpus(unsigned int max_cpus);