Add ASUS Sandybridge laptops to the similar x2apic disable logic

that was recently added for Lenovo laptops.

This is a prime candidate for conversion into a table and also
checking other fields like "product".

Tested:

* ASUS UX31E
This commit is contained in:
Adrian Chadd 2015-09-16 01:44:11 +00:00
parent 4af587d062
commit a14bc739d5

View File

@ -182,7 +182,19 @@ madt_setup_local(void)
CPUID_TO_FAMILY(cpu_id) == 0x6 &&
CPUID_TO_MODEL(cpu_id) == 0x2a) {
x2apic_mode = 0;
reason = "for a suspected Lenovo SandyBridge BIOS bug";
reason =
"for a suspected Lenovo SandyBridge BIOS bug";
}
/*
* Same reason, ASUS SandyBridge.
*/
if (hw_vendor != NULL &&
!strcmp(hw_vendor, "ASUSTeK Computer Inc.") &&
CPUID_TO_FAMILY(cpu_id) == 0x6 &&
CPUID_TO_MODEL(cpu_id) == 0x2a) {
x2apic_mode = 0;
reason =
"for a suspected ASUS SandyBridge BIOS bug";
}
freeenv(hw_vendor);
}