@@ -5,6 +5,7 @@ config X86
def_bool y
select COMPAT
select HAS_ACPI
+ select ACPI_LEGACY_TABLES_LOOKUP if HAS_ACPI
select HAS_CPUFREQ
select HAS_EHCI
select HAS_GDBSX
@@ -2,3 +2,6 @@
# Select HAS_ACPI if ACPI is supported
config HAS_ACPI
bool
+
+config ACPI_LEGACY_TABLES_LOOKUP
+ bool
@@ -75,12 +75,14 @@ acpi_physical_address __init acpi_os_get_root_pointer(void)
"System description tables not found\n");
return 0;
}
- } else {
+ } else if (IS_ENABLED(CONFIG_ACPI_LEGACY_TABLES_LOOKUP)) {
acpi_physical_address pa = 0;
acpi_find_root_pointer(&pa);
return pa;
}
+
+ return 0;
}
void __iomem *