Commit 1c886c6d authored by Len Brown's avatar Len Brown

[ACPI] prevent ES7000 tweak from breaking i386 IOAPIC (Andrew de Quincey)

parent bbdbb841
...@@ -16,6 +16,7 @@ EXPORT_SYMBOL(dmi_broken); ...@@ -16,6 +16,7 @@ EXPORT_SYMBOL(dmi_broken);
int is_sony_vaio_laptop; int is_sony_vaio_laptop;
int is_unsafe_smbus; int is_unsafe_smbus;
int es7000_plat = 0;
struct dmi_header struct dmi_header
{ {
......
...@@ -1129,8 +1129,11 @@ void __init mp_parse_prt (void) ...@@ -1129,8 +1129,11 @@ void __init mp_parse_prt (void)
continue; continue;
ioapic_pin = irq - mp_ioapic_routing[ioapic].irq_start; ioapic_pin = irq - mp_ioapic_routing[ioapic].irq_start;
if (!ioapic && (irq < 16)) if (es7000_plat) {
irq += 16; if (!ioapic && (irq < 16))
irq += 16;
}
/* /*
* Avoid pin reprogramming. PRTs typically include entries * Avoid pin reprogramming. PRTs typically include entries
* with redundant pin->irq mappings (but unique PCI devices); * with redundant pin->irq mappings (but unique PCI devices);
......
...@@ -51,8 +51,6 @@ struct mip_reg *host_reg; ...@@ -51,8 +51,6 @@ struct mip_reg *host_reg;
int mip_port; int mip_port;
unsigned long mip_addr, host_addr; unsigned long mip_addr, host_addr;
static int es7000_plat;
/* /*
* Parse the OEM Table * Parse the OEM Table
*/ */
......
...@@ -470,6 +470,7 @@ void enable_hlt(void); ...@@ -470,6 +470,7 @@ void enable_hlt(void);
extern unsigned long dmi_broken; extern unsigned long dmi_broken;
extern int is_sony_vaio_laptop; extern int is_sony_vaio_laptop;
extern int es7000_plat;
#define BROKEN_ACPI_Sx 0x0001 #define BROKEN_ACPI_Sx 0x0001
#define BROKEN_INIT_AFTER_S1 0x0002 #define BROKEN_INIT_AFTER_S1 0x0002
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment