]> err.no Git - linux-2.6/commitdiff
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 2fd74b06db67093cc3b7789534f30d81b6912346..80dba12b56af1bca8ae8e1d3a079cb52ea693404 100644 (file)
@@ -528,3 +528,5 @@ asmlinkage void smp_call_function_interrupt(void)
        }
 }
 
+struct smp_ops smp_ops;
+EXPORT_SYMBOL_GPL(smp_ops);
index d11b92b56353280b82fe90bd08741ed2e45491e3..ee98beeb7511d9e7d56f1475441041869a6385f3 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 72faad6509c7c24fb709f98a31cb9f512305d0b4..74755e8ffc77dd8e3f67006b6084438385783108 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();