diff options
Diffstat (limited to 'arch/x86/kernel/genapic_64.c')
-rw-r--r-- | arch/x86/kernel/genapic_64.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/arch/x86/kernel/genapic_64.c b/arch/x86/kernel/genapic_64.c index ce703e21c912..4ae7b6440260 100644 --- a/arch/x86/kernel/genapic_64.c +++ b/arch/x86/kernel/genapic_64.c | |||
@@ -24,18 +24,11 @@ | |||
24 | #include <acpi/acpi_bus.h> | 24 | #include <acpi/acpi_bus.h> |
25 | #endif | 25 | #endif |
26 | 26 | ||
27 | /* | 27 | /* which logical CPU number maps to which CPU (physical APIC ID) */ |
28 | * which logical CPU number maps to which CPU (physical APIC ID) | 28 | u16 x86_cpu_to_apicid_init[NR_CPUS] __initdata |
29 | * | ||
30 | * The following static array is used during kernel startup | ||
31 | * and the x86_cpu_to_apicid_ptr contains the address of the | ||
32 | * array during this time. Is it zeroed when the per_cpu | ||
33 | * data area is removed. | ||
34 | */ | ||
35 | u8 x86_cpu_to_apicid_init[NR_CPUS] __initdata | ||
36 | = { [0 ... NR_CPUS-1] = BAD_APICID }; | 29 | = { [0 ... NR_CPUS-1] = BAD_APICID }; |
37 | void *x86_cpu_to_apicid_ptr; | 30 | void *x86_cpu_to_apicid_early_ptr; |
38 | DEFINE_PER_CPU(u8, x86_cpu_to_apicid) = BAD_APICID; | 31 | DEFINE_PER_CPU(u16, x86_cpu_to_apicid) = BAD_APICID; |
39 | EXPORT_PER_CPU_SYMBOL(x86_cpu_to_apicid); | 32 | EXPORT_PER_CPU_SYMBOL(x86_cpu_to_apicid); |
40 | 33 | ||
41 | struct genapic __read_mostly *genapic = &apic_flat; | 34 | struct genapic __read_mostly *genapic = &apic_flat; |