diff options
| -rw-r--r-- | arch/x86/kernel/acpi/boot.c | 4 | ||||
| -rw-r--r-- | include/asm-x86/mpspec.h | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c index 12e260e8fb2a..d9770a56511a 100644 --- a/arch/x86/kernel/acpi/boot.c +++ b/arch/x86/kernel/acpi/boot.c | |||
| @@ -239,10 +239,8 @@ static void __cpuinit acpi_register_lapic(int id, u8 enabled) | |||
| 239 | return; | 239 | return; |
| 240 | } | 240 | } |
| 241 | 241 | ||
| 242 | #ifdef CONFIG_X86_32 | ||
| 243 | if (boot_cpu_physical_apicid != -1U) | 242 | if (boot_cpu_physical_apicid != -1U) |
| 244 | ver = apic_version[boot_cpu_physical_apicid]; | 243 | ver = apic_version[boot_cpu_physical_apicid]; |
| 245 | #endif | ||
| 246 | 244 | ||
| 247 | generic_processor_info(id, ver); | 245 | generic_processor_info(id, ver); |
| 248 | } | 246 | } |
| @@ -762,10 +760,8 @@ static void __init acpi_register_lapic_address(unsigned long address) | |||
| 762 | set_fixmap_nocache(FIX_APIC_BASE, address); | 760 | set_fixmap_nocache(FIX_APIC_BASE, address); |
| 763 | if (boot_cpu_physical_apicid == -1U) { | 761 | if (boot_cpu_physical_apicid == -1U) { |
| 764 | boot_cpu_physical_apicid = read_apic_id(); | 762 | boot_cpu_physical_apicid = read_apic_id(); |
| 765 | #ifdef CONFIG_X86_32 | ||
| 766 | apic_version[boot_cpu_physical_apicid] = | 763 | apic_version[boot_cpu_physical_apicid] = |
| 767 | GET_APIC_VERSION(apic_read(APIC_LVR)); | 764 | GET_APIC_VERSION(apic_read(APIC_LVR)); |
| 768 | #endif | ||
| 769 | } | 765 | } |
| 770 | } | 766 | } |
| 771 | 767 | ||
diff --git a/include/asm-x86/mpspec.h b/include/asm-x86/mpspec.h index 118da365e371..be2241a818f1 100644 --- a/include/asm-x86/mpspec.h +++ b/include/asm-x86/mpspec.h | |||
| @@ -5,11 +5,12 @@ | |||
| 5 | 5 | ||
| 6 | #include <asm/mpspec_def.h> | 6 | #include <asm/mpspec_def.h> |
| 7 | 7 | ||
| 8 | extern int apic_version[MAX_APICS]; | ||
| 9 | |||
| 8 | #ifdef CONFIG_X86_32 | 10 | #ifdef CONFIG_X86_32 |
| 9 | #include <mach_mpspec.h> | 11 | #include <mach_mpspec.h> |
| 10 | 12 | ||
| 11 | extern unsigned int def_to_bigsmp; | 13 | extern unsigned int def_to_bigsmp; |
| 12 | extern int apic_version[MAX_APICS]; | ||
| 13 | extern u8 apicid_2_node[]; | 14 | extern u8 apicid_2_node[]; |
| 14 | extern int pic_mode; | 15 | extern int pic_mode; |
| 15 | 16 | ||
