x86: move smp_ops extern declaration to common header
authorGlauber Costa <gcosta@redhat.com>
Mon, 3 Mar 2008 17:12:33 +0000 (14:12 -0300)
committerIngo Molnar <mingo@elte.hu>
Thu, 17 Apr 2008 15:40:53 +0000 (17:40 +0200)
the smp_ops symbol is temporarily defined in smp_64.c, but it will soon
be unified

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 2fd74b0..80dba12 100644 (file)
@@ -528,3 +528,5 @@ asmlinkage void smp_call_function_interrupt(void)
        }
 }
 
+struct smp_ops smp_ops;
+EXPORT_SYMBOL_GPL(smp_ops);
index d11b92b..ee98bee 100644 (file)
@@ -21,6 +21,9 @@ struct smp_ops {
                                      int wait);
 };
 
+#ifdef CONFIG_SMP
+extern struct smp_ops smp_ops;
+#endif
 
 #ifdef CONFIG_X86_32
 # include "smp_32.h"
index 72faad6..74755e8 100644 (file)
@@ -39,8 +39,6 @@ extern void remove_siblinginfo(int cpu);
 extern void set_cpu_sibling_map(int cpu);
 
 #ifdef CONFIG_SMP
-extern struct smp_ops smp_ops;
-
 static inline void smp_prepare_boot_cpu(void)
 {
        smp_ops.smp_prepare_boot_cpu();