diff options
-rw-r--r-- | include/asm-x86/smp.h | 12 | ||||
-rw-r--r-- | include/asm-x86/smp_32.h | 8 | ||||
-rw-r--r-- | include/asm-x86/smp_64.h | 11 |
3 files changed, 12 insertions, 19 deletions
diff --git a/include/asm-x86/smp.h b/include/asm-x86/smp.h index b4c5143d7f8d..d02e6eacee39 100644 --- a/include/asm-x86/smp.h +++ b/include/asm-x86/smp.h | |||
@@ -3,12 +3,24 @@ | |||
3 | #ifndef __ASSEMBLY__ | 3 | #ifndef __ASSEMBLY__ |
4 | #include <linux/cpumask.h> | 4 | #include <linux/cpumask.h> |
5 | #include <linux/init.h> | 5 | #include <linux/init.h> |
6 | #include <asm/percpu.h> | ||
6 | 7 | ||
7 | extern cpumask_t cpu_callout_map; | 8 | extern cpumask_t cpu_callout_map; |
8 | 9 | ||
9 | extern int smp_num_siblings; | 10 | extern int smp_num_siblings; |
10 | extern unsigned int num_processors; | 11 | extern unsigned int num_processors; |
11 | 12 | ||
13 | extern u16 x86_cpu_to_apicid_init[]; | ||
14 | extern u16 x86_bios_cpu_apicid_init[]; | ||
15 | extern void *x86_cpu_to_apicid_early_ptr; | ||
16 | extern void *x86_bios_cpu_apicid_early_ptr; | ||
17 | |||
18 | DECLARE_PER_CPU(cpumask_t, cpu_sibling_map); | ||
19 | DECLARE_PER_CPU(cpumask_t, cpu_core_map); | ||
20 | DECLARE_PER_CPU(u16, cpu_llc_id); | ||
21 | DECLARE_PER_CPU(u16, x86_cpu_to_apicid); | ||
22 | DECLARE_PER_CPU(u16, x86_bios_cpu_apicid); | ||
23 | |||
12 | /* | 24 | /* |
13 | * Trampoline 80x86 program as an array. | 25 | * Trampoline 80x86 program as an array. |
14 | */ | 26 | */ |
diff --git a/include/asm-x86/smp_32.h b/include/asm-x86/smp_32.h index 51624abda43a..478f5564630f 100644 --- a/include/asm-x86/smp_32.h +++ b/include/asm-x86/smp_32.h | |||
@@ -21,14 +21,6 @@ extern cpumask_t cpu_callin_map; | |||
21 | extern void (*mtrr_hook) (void); | 21 | extern void (*mtrr_hook) (void); |
22 | extern void zap_low_mappings (void); | 22 | extern void zap_low_mappings (void); |
23 | 23 | ||
24 | extern u16 __initdata x86_cpu_to_apicid_init[]; | ||
25 | extern void *x86_cpu_to_apicid_early_ptr; | ||
26 | |||
27 | DECLARE_PER_CPU(cpumask_t, cpu_sibling_map); | ||
28 | DECLARE_PER_CPU(cpumask_t, cpu_core_map); | ||
29 | DECLARE_PER_CPU(u16, cpu_llc_id); | ||
30 | DECLARE_PER_CPU(u16, x86_cpu_to_apicid); | ||
31 | |||
32 | #ifdef CONFIG_SMP | 24 | #ifdef CONFIG_SMP |
33 | /* | 25 | /* |
34 | * This function is needed by all SMP systems. It must _always_ be valid | 26 | * This function is needed by all SMP systems. It must _always_ be valid |
diff --git a/include/asm-x86/smp_64.h b/include/asm-x86/smp_64.h index 394c78524331..1b3c0f1de9a9 100644 --- a/include/asm-x86/smp_64.h +++ b/include/asm-x86/smp_64.h | |||
@@ -19,17 +19,6 @@ extern cpumask_t cpu_callin_map; | |||
19 | extern int smp_call_function_mask(cpumask_t mask, void (*func)(void *), | 19 | extern int smp_call_function_mask(cpumask_t mask, void (*func)(void *), |
20 | void *info, int wait); | 20 | void *info, int wait); |
21 | 21 | ||
22 | extern u16 __initdata x86_cpu_to_apicid_init[]; | ||
23 | extern u16 __initdata x86_bios_cpu_apicid_init[]; | ||
24 | extern void *x86_cpu_to_apicid_early_ptr; | ||
25 | extern void *x86_bios_cpu_apicid_early_ptr; | ||
26 | |||
27 | DECLARE_PER_CPU(cpumask_t, cpu_sibling_map); | ||
28 | DECLARE_PER_CPU(cpumask_t, cpu_core_map); | ||
29 | DECLARE_PER_CPU(u16, cpu_llc_id); | ||
30 | DECLARE_PER_CPU(u16, x86_cpu_to_apicid); | ||
31 | DECLARE_PER_CPU(u16, x86_bios_cpu_apicid); | ||
32 | |||
33 | static inline int cpu_present_to_apicid(int mps_cpu) | 22 | static inline int cpu_present_to_apicid(int mps_cpu) |
34 | { | 23 | { |
35 | if (cpu_present(mps_cpu)) | 24 | if (cpu_present(mps_cpu)) |