diff options
author | Glauber Costa <gcosta@redhat.com> | 2008-03-03 12:12:33 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:40:53 -0400 |
commit | c76cb36846da6d5d6fb2951968869faa4fd1001d (patch) | |
tree | 4252ac5b35b83aed5ca4509a0d12afe9788014ce | |
parent | 16694024d6d6fa84dfcf5400b53afe1e75cebf0d (diff) |
x86: move smp_ops extern declaration to common header
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>
-rw-r--r-- | arch/x86/kernel/smp_64.c | 2 | ||||
-rw-r--r-- | include/asm-x86/smp.h | 3 | ||||
-rw-r--r-- | include/asm-x86/smp_32.h | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/arch/x86/kernel/smp_64.c b/arch/x86/kernel/smp_64.c index 2fd74b06db67..80dba12b56af 100644 --- a/arch/x86/kernel/smp_64.c +++ b/arch/x86/kernel/smp_64.c | |||
@@ -528,3 +528,5 @@ asmlinkage void smp_call_function_interrupt(void) | |||
528 | } | 528 | } |
529 | } | 529 | } |
530 | 530 | ||
531 | struct smp_ops smp_ops; | ||
532 | EXPORT_SYMBOL_GPL(smp_ops); | ||
diff --git a/include/asm-x86/smp.h b/include/asm-x86/smp.h index d11b92b56353..ee98beeb7511 100644 --- a/include/asm-x86/smp.h +++ b/include/asm-x86/smp.h | |||
@@ -21,6 +21,9 @@ struct smp_ops { | |||
21 | int wait); | 21 | int wait); |
22 | }; | 22 | }; |
23 | 23 | ||
24 | #ifdef CONFIG_SMP | ||
25 | extern struct smp_ops smp_ops; | ||
26 | #endif | ||
24 | 27 | ||
25 | #ifdef CONFIG_X86_32 | 28 | #ifdef CONFIG_X86_32 |
26 | # include "smp_32.h" | 29 | # include "smp_32.h" |
diff --git a/include/asm-x86/smp_32.h b/include/asm-x86/smp_32.h index 72faad6509c7..74755e8ffc77 100644 --- a/include/asm-x86/smp_32.h +++ b/include/asm-x86/smp_32.h | |||
@@ -39,8 +39,6 @@ extern void remove_siblinginfo(int cpu); | |||
39 | extern void set_cpu_sibling_map(int cpu); | 39 | extern void set_cpu_sibling_map(int cpu); |
40 | 40 | ||
41 | #ifdef CONFIG_SMP | 41 | #ifdef CONFIG_SMP |
42 | extern struct smp_ops smp_ops; | ||
43 | |||
44 | static inline void smp_prepare_boot_cpu(void) | 42 | static inline void smp_prepare_boot_cpu(void) |
45 | { | 43 | { |
46 | smp_ops.smp_prepare_boot_cpu(); | 44 | smp_ops.smp_prepare_boot_cpu(); |