diff options
Diffstat (limited to 'arch/x86/kernel/acpi/boot.c')
-rw-r--r-- | arch/x86/kernel/acpi/boot.c | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c index bfd10fd211cd..c2ac1b4515a0 100644 --- a/arch/x86/kernel/acpi/boot.c +++ b/arch/x86/kernel/acpi/boot.c | |||
@@ -58,7 +58,6 @@ EXPORT_SYMBOL(acpi_disabled); | |||
58 | #ifdef CONFIG_X86_64 | 58 | #ifdef CONFIG_X86_64 |
59 | 59 | ||
60 | #include <asm/proto.h> | 60 | #include <asm/proto.h> |
61 | #include <asm/genapic.h> | ||
62 | 61 | ||
63 | #else /* X86 */ | 62 | #else /* X86 */ |
64 | 63 | ||
@@ -97,8 +96,6 @@ static u64 acpi_lapic_addr __initdata = APIC_DEFAULT_PHYS_BASE; | |||
97 | #warning ACPI uses CMPXCHG, i486 and later hardware | 96 | #warning ACPI uses CMPXCHG, i486 and later hardware |
98 | #endif | 97 | #endif |
99 | 98 | ||
100 | static int acpi_mcfg_64bit_base_addr __initdata = FALSE; | ||
101 | |||
102 | /* -------------------------------------------------------------------------- | 99 | /* -------------------------------------------------------------------------- |
103 | Boot-time Configuration | 100 | Boot-time Configuration |
104 | -------------------------------------------------------------------------- */ | 101 | -------------------------------------------------------------------------- */ |
@@ -160,6 +157,8 @@ char *__init __acpi_map_table(unsigned long phys, unsigned long size) | |||
160 | struct acpi_mcfg_allocation *pci_mmcfg_config; | 157 | struct acpi_mcfg_allocation *pci_mmcfg_config; |
161 | int pci_mmcfg_config_num; | 158 | int pci_mmcfg_config_num; |
162 | 159 | ||
160 | static int acpi_mcfg_64bit_base_addr __initdata = FALSE; | ||
161 | |||
163 | static int __init acpi_mcfg_oem_check(struct acpi_table_mcfg *mcfg) | 162 | static int __init acpi_mcfg_oem_check(struct acpi_table_mcfg *mcfg) |
164 | { | 163 | { |
165 | if (!strcmp(mcfg->header.oem_id, "SGI")) | 164 | if (!strcmp(mcfg->header.oem_id, "SGI")) |
@@ -253,10 +252,8 @@ static void __cpuinit acpi_register_lapic(int id, u8 enabled) | |||
253 | return; | 252 | return; |
254 | } | 253 | } |
255 | 254 | ||
256 | #ifdef CONFIG_X86_32 | ||
257 | if (boot_cpu_physical_apicid != -1U) | 255 | if (boot_cpu_physical_apicid != -1U) |
258 | ver = apic_version[boot_cpu_physical_apicid]; | 256 | ver = apic_version[boot_cpu_physical_apicid]; |
259 | #endif | ||
260 | 257 | ||
261 | generic_processor_info(id, ver); | 258 | generic_processor_info(id, ver); |
262 | } | 259 | } |
@@ -775,11 +772,9 @@ static void __init acpi_register_lapic_address(unsigned long address) | |||
775 | 772 | ||
776 | set_fixmap_nocache(FIX_APIC_BASE, address); | 773 | set_fixmap_nocache(FIX_APIC_BASE, address); |
777 | if (boot_cpu_physical_apicid == -1U) { | 774 | if (boot_cpu_physical_apicid == -1U) { |
778 | boot_cpu_physical_apicid = GET_APIC_ID(read_apic_id()); | 775 | boot_cpu_physical_apicid = read_apic_id(); |
779 | #ifdef CONFIG_X86_32 | ||
780 | apic_version[boot_cpu_physical_apicid] = | 776 | apic_version[boot_cpu_physical_apicid] = |
781 | GET_APIC_VERSION(apic_read(APIC_LVR)); | 777 | GET_APIC_VERSION(apic_read(APIC_LVR)); |
782 | #endif | ||
783 | } | 778 | } |
784 | } | 779 | } |
785 | 780 | ||
@@ -1351,7 +1346,9 @@ static void __init acpi_process_madt(void) | |||
1351 | acpi_ioapic = 1; | 1346 | acpi_ioapic = 1; |
1352 | 1347 | ||
1353 | smp_found_config = 1; | 1348 | smp_found_config = 1; |
1349 | #ifdef CONFIG_X86_32 | ||
1354 | setup_apic_routing(); | 1350 | setup_apic_routing(); |
1351 | #endif | ||
1355 | } | 1352 | } |
1356 | } | 1353 | } |
1357 | if (error == -EINVAL) { | 1354 | if (error == -EINVAL) { |
@@ -1605,6 +1602,14 @@ static struct dmi_system_id __initdata acpi_dmi_table[] = { | |||
1605 | */ | 1602 | */ |
1606 | { | 1603 | { |
1607 | .callback = dmi_ignore_irq0_timer_override, | 1604 | .callback = dmi_ignore_irq0_timer_override, |
1605 | .ident = "HP nx6115 laptop", | ||
1606 | .matches = { | ||
1607 | DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"), | ||
1608 | DMI_MATCH(DMI_PRODUCT_NAME, "HP Compaq nx6115"), | ||
1609 | }, | ||
1610 | }, | ||
1611 | { | ||
1612 | .callback = dmi_ignore_irq0_timer_override, | ||
1608 | .ident = "HP NX6125 laptop", | 1613 | .ident = "HP NX6125 laptop", |
1609 | .matches = { | 1614 | .matches = { |
1610 | DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"), | 1615 | DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"), |
@@ -1619,6 +1624,14 @@ static struct dmi_system_id __initdata acpi_dmi_table[] = { | |||
1619 | DMI_MATCH(DMI_PRODUCT_NAME, "HP Compaq nx6325"), | 1624 | DMI_MATCH(DMI_PRODUCT_NAME, "HP Compaq nx6325"), |
1620 | }, | 1625 | }, |
1621 | }, | 1626 | }, |
1627 | { | ||
1628 | .callback = dmi_ignore_irq0_timer_override, | ||
1629 | .ident = "HP 6715b laptop", | ||
1630 | .matches = { | ||
1631 | DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"), | ||
1632 | DMI_MATCH(DMI_PRODUCT_NAME, "HP Compaq 6715b"), | ||
1633 | }, | ||
1634 | }, | ||
1622 | {} | 1635 | {} |
1623 | }; | 1636 | }; |
1624 | 1637 | ||