Commit c76cb368 authored by Glauber Costa's avatar Glauber Costa Committed by Ingo Molnar

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: default avatarGlauber Costa <gcosta@redhat.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 16694024
...@@ -528,3 +528,5 @@ asmlinkage void smp_call_function_interrupt(void) ...@@ -528,3 +528,5 @@ asmlinkage void smp_call_function_interrupt(void)
} }
} }
struct smp_ops smp_ops;
EXPORT_SYMBOL_GPL(smp_ops);
...@@ -21,6 +21,9 @@ struct smp_ops { ...@@ -21,6 +21,9 @@ struct smp_ops {
int wait); int wait);
}; };
#ifdef CONFIG_SMP
extern struct smp_ops smp_ops;
#endif
#ifdef CONFIG_X86_32 #ifdef CONFIG_X86_32
# include "smp_32.h" # include "smp_32.h"
......
...@@ -39,8 +39,6 @@ extern void remove_siblinginfo(int cpu); ...@@ -39,8 +39,6 @@ extern void remove_siblinginfo(int cpu);
extern void set_cpu_sibling_map(int cpu); extern void set_cpu_sibling_map(int cpu);
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
extern struct smp_ops smp_ops;
static inline void smp_prepare_boot_cpu(void) static inline void smp_prepare_boot_cpu(void)
{ {
smp_ops.smp_prepare_boot_cpu(); smp_ops.smp_prepare_boot_cpu();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment