提交 781674fc 编写于 作者: J Jan Kiszka 提交者: Thomas Gleixner

x86/x2apic: Acpi_gbl_FADT existence depends on CONFIG_ACPI

If ACPI is disabled, acpi_gbl_FADT is not available, and and the build
breaks.
Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
Link: http://lkml.kernel.org/r/55479708.2000104@siemens.comSigned-off-by: NThomas Gleixner <tglx@linutronix.de>
上级 eb18cf55
...@@ -21,11 +21,13 @@ early_param("x2apic_phys", set_x2apic_phys_mode); ...@@ -21,11 +21,13 @@ early_param("x2apic_phys", set_x2apic_phys_mode);
static bool x2apic_fadt_phys(void) static bool x2apic_fadt_phys(void)
{ {
#ifdef CONFIG_ACPI
if ((acpi_gbl_FADT.header.revision >= FADT2_REVISION_ID) && if ((acpi_gbl_FADT.header.revision >= FADT2_REVISION_ID) &&
(acpi_gbl_FADT.flags & ACPI_FADT_APIC_PHYSICAL)) { (acpi_gbl_FADT.flags & ACPI_FADT_APIC_PHYSICAL)) {
printk(KERN_DEBUG "System requires x2apic physical mode\n"); printk(KERN_DEBUG "System requires x2apic physical mode\n");
return true; return true;
} }
#endif
return false; return false;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册