File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 35
35
#include <linux/delay.h>
36
36
#ifdef CONFIG_X86
37
37
#include <asm/mpspec.h>
38
+ #include <linux/dmi.h>
38
39
#endif
39
40
#include <linux/acpi_iort.h>
40
41
#include <linux/pci.h>
41
42
#include <acpi/apei.h>
42
- #include <linux/dmi.h>
43
43
#include <linux/suspend.h>
44
44
45
45
#include "internal.h"
@@ -82,10 +82,6 @@ static const struct dmi_system_id dsdt_dmi_table[] __initconst = {
82
82
},
83
83
{}
84
84
};
85
- #else
86
- static const struct dmi_system_id dsdt_dmi_table [] __initconst = {
87
- {}
88
- };
89
85
#endif
90
86
91
87
/* --------------------------------------------------------------------------
@@ -1033,11 +1029,16 @@ void __init acpi_early_init(void)
1033
1029
1034
1030
acpi_permanent_mmap = true;
1035
1031
1032
+ #ifdef CONFIG_X86
1036
1033
/*
1037
1034
* If the machine falls into the DMI check table,
1038
- * DSDT will be copied to memory
1035
+ * DSDT will be copied to memory.
1036
+ * Note that calling dmi_check_system() here on other architectures
1037
+ * would not be OK because only x86 initializes dmi early enough.
1038
+ * Thankfully only x86 systems need such quirks for now.
1039
1039
*/
1040
1040
dmi_check_system (dsdt_dmi_table );
1041
+ #endif
1041
1042
1042
1043
status = acpi_reallocate_root_table ();
1043
1044
if (ACPI_FAILURE (status )) {
You can’t perform that action at this time.
0 commit comments