diff options
author | Glauber Costa <gcosta@redhat.com> | 2008-03-03 12:12:59 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:40:56 -0400 |
commit | 1452207689b3c0dd2ffed40735289a3a4a8c0c7c (patch) | |
tree | 098e5b305974127c864276e636ad174846bbcfed | |
parent | a355352b97901d987f54ea7c7d7161eb51a3799c (diff) |
x86: make set_cpu_sibling_map nonstatic
And move its extern definition to smp.h, the common header
Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | arch/x86/kernel/smpboot_64.c | 2 | ||||
-rw-r--r-- | include/asm-x86/smp.h | 3 | ||||
-rw-r--r-- | include/asm-x86/smp_32.h | 3 |
3 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/kernel/smpboot_64.c b/arch/x86/kernel/smpboot_64.c index c51279f05316..1e8f00a1d624 100644 --- a/arch/x86/kernel/smpboot_64.c +++ b/arch/x86/kernel/smpboot_64.c | |||
@@ -228,7 +228,7 @@ cpumask_t cpu_coregroup_map(int cpu) | |||
228 | /* representing cpus for which sibling maps can be computed */ | 228 | /* representing cpus for which sibling maps can be computed */ |
229 | static cpumask_t cpu_sibling_setup_map; | 229 | static cpumask_t cpu_sibling_setup_map; |
230 | 230 | ||
231 | static inline void set_cpu_sibling_map(int cpu) | 231 | void __cpuinit set_cpu_sibling_map(int cpu) |
232 | { | 232 | { |
233 | int i; | 233 | int i; |
234 | struct cpuinfo_x86 *c = &cpu_data(cpu); | 234 | struct cpuinfo_x86 *c = &cpu_data(cpu); |
diff --git a/include/asm-x86/smp.h b/include/asm-x86/smp.h index 2ab8ed4e99e0..1b4481aeb5c8 100644 --- a/include/asm-x86/smp.h +++ b/include/asm-x86/smp.h | |||
@@ -22,6 +22,9 @@ struct smp_ops { | |||
22 | int wait); | 22 | int wait); |
23 | }; | 23 | }; |
24 | 24 | ||
25 | /* Globals due to paravirt */ | ||
26 | extern void set_cpu_sibling_map(int cpu); | ||
27 | |||
25 | #ifdef CONFIG_SMP | 28 | #ifdef CONFIG_SMP |
26 | extern struct smp_ops smp_ops; | 29 | extern struct smp_ops smp_ops; |
27 | 30 | ||
diff --git a/include/asm-x86/smp_32.h b/include/asm-x86/smp_32.h index 29f61952ea8c..76247a947a5f 100644 --- a/include/asm-x86/smp_32.h +++ b/include/asm-x86/smp_32.h | |||
@@ -35,9 +35,6 @@ extern void cpu_uninit(void); | |||
35 | extern void remove_siblinginfo(int cpu); | 35 | extern void remove_siblinginfo(int cpu); |
36 | #endif | 36 | #endif |
37 | 37 | ||
38 | /* Globals due to paravirt */ | ||
39 | extern void set_cpu_sibling_map(int cpu); | ||
40 | |||
41 | #ifdef CONFIG_SMP | 38 | #ifdef CONFIG_SMP |
42 | #ifndef CONFIG_PARAVIRT | 39 | #ifndef CONFIG_PARAVIRT |
43 | #define startup_ipi_hook(phys_apicid, start_eip, start_esp) do { } while (0) | 40 | #define startup_ipi_hook(phys_apicid, start_eip, start_esp) do { } while (0) |