summaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2018-09-07 10:05:20 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2018-09-07 10:05:20 +0200
commita6b7eb3b4176d9732d74d214b349932faa5524b4 (patch)
tree5747b9caf34c4ce0f7d16059d51124e6a6129fbb /drivers/acpi
parentf11fc4bc669b8622510c1039499f5a9d24248fec (diff)
parent5d128fbd8b20f8a48cb13c3eced789d1f9573ecd (diff)
downloadtalos-op-linux-a6b7eb3b4176d9732d74d214b349932faa5524b4.tar.gz
talos-op-linux-a6b7eb3b4176d9732d74d214b349932faa5524b4.zip
Merge branch 'acpi-bus'
Merge ACPI core fix to avoid calling dmi_check_system() on non-x86. * acpi-bus: ACPI / bus: Only call dmi_check_system() on X86
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/bus.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c
index 292088fcc624..d2e29a19890d 100644
--- a/drivers/acpi/bus.c
+++ b/drivers/acpi/bus.c
@@ -35,11 +35,11 @@
#include <linux/delay.h>
#ifdef CONFIG_X86
#include <asm/mpspec.h>
+#include <linux/dmi.h>
#endif
#include <linux/acpi_iort.h>
#include <linux/pci.h>
#include <acpi/apei.h>
-#include <linux/dmi.h>
#include <linux/suspend.h>
#include "internal.h"
@@ -82,10 +82,6 @@ static const struct dmi_system_id dsdt_dmi_table[] __initconst = {
},
{}
};
-#else
-static const struct dmi_system_id dsdt_dmi_table[] __initconst = {
- {}
-};
#endif
/* --------------------------------------------------------------------------
@@ -1033,11 +1029,16 @@ void __init acpi_early_init(void)
acpi_permanent_mmap = true;
+#ifdef CONFIG_X86
/*
* If the machine falls into the DMI check table,
- * DSDT will be copied to memory
+ * DSDT will be copied to memory.
+ * Note that calling dmi_check_system() here on other architectures
+ * would not be OK because only x86 initializes dmi early enough.
+ * Thankfully only x86 systems need such quirks for now.
*/
dmi_check_system(dsdt_dmi_table);
+#endif
status = acpi_reallocate_root_table();
if (ACPI_FAILURE(status)) {
OpenPOWER on IntegriCloud