diff options
Diffstat (limited to 'arch/x86/kernel/acpi/boot.c')
-rw-r--r-- | arch/x86/kernel/acpi/boot.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c index 7dc2130046d9..caf4ed7ca069 100644 --- a/arch/x86/kernel/acpi/boot.c +++ b/arch/x86/kernel/acpi/boot.c | |||
@@ -242,12 +242,19 @@ static int __init acpi_parse_madt(struct acpi_table_header *table) | |||
242 | 242 | ||
243 | static void __cpuinit acpi_register_lapic(int id, u8 enabled) | 243 | static void __cpuinit acpi_register_lapic(int id, u8 enabled) |
244 | { | 244 | { |
245 | unsigned int ver = 0; | ||
246 | |||
245 | if (!enabled) { | 247 | if (!enabled) { |
246 | ++disabled_cpus; | 248 | ++disabled_cpus; |
247 | return; | 249 | return; |
248 | } | 250 | } |
249 | 251 | ||
250 | generic_processor_info(id, 0); | 252 | #ifdef CONFIG_X86_32 |
253 | if (boot_cpu_physical_apicid != -1U) | ||
254 | ver = apic_version[boot_cpu_physical_apicid]; | ||
255 | #endif | ||
256 | |||
257 | generic_processor_info(id, ver); | ||
251 | } | 258 | } |
252 | 259 | ||
253 | static int __init | 260 | static int __init |
@@ -765,8 +772,13 @@ static void __init acpi_register_lapic_address(unsigned long address) | |||
765 | mp_lapic_addr = address; | 772 | mp_lapic_addr = address; |
766 | 773 | ||
767 | set_fixmap_nocache(FIX_APIC_BASE, address); | 774 | set_fixmap_nocache(FIX_APIC_BASE, address); |
768 | if (boot_cpu_physical_apicid == -1U) | 775 | if (boot_cpu_physical_apicid == -1U) { |
769 | boot_cpu_physical_apicid = GET_APIC_ID(read_apic_id()); | 776 | boot_cpu_physical_apicid = GET_APIC_ID(read_apic_id()); |
777 | #ifdef CONFIG_X86_32 | ||
778 | apic_version[boot_cpu_physical_apicid] = | ||
779 | GET_APIC_VERSION(apic_read(APIC_LVR)); | ||
780 | #endif | ||
781 | } | ||
770 | } | 782 | } |
771 | 783 | ||
772 | static int __init early_acpi_parse_madt_lapic_addr_ovr(void) | 784 | static int __init early_acpi_parse_madt_lapic_addr_ovr(void) |