]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / bus: Only call dmi_check_system() on X86
authorJean Delvare <jdelvare@suse.de>
Tue, 4 Sep 2018 12:55:26 +0000 (14:55 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 6 Sep 2018 10:16:29 +0000 (12:16 +0200)
commit97a1f10fafc93ba349e48b616800b214ca27360d
treeb827bf41059de084b3cb89643d5f3802054e8373
parent77e0a4623a7dc6c49e4b731092b7a6d5605e640c
ACPI / bus: Only call dmi_check_system() on X86

Calling dmi_check_system() early only works on X86. Other
architectures initialize the DMI subsystem later so it's not
ready yet when ACPI itself gets initialized.

In the best case it results in a useless call to a function which
will do nothing. But depending on the dmi implementation, it could
also result in warnings. Best is to not call the function when it
can't work and isn't needed.

Additionally, if anyone ever needs to add non-x86 quirks, it would
surprisingly not work, so document the limitation to avoid confusion.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Fixes: fe375c4eecd3 (ACPI: fix early DSDT dmi check warnings on ia64)
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/bus.c