]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ACPI: do acpisleep dmi check when CONFIG_ACPI_SLEEP is set
authorZhang Rui <rui.zhang@intel.com>
Fri, 30 Nov 2012 11:57:03 +0000 (12:57 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Jan 2013 17:06:54 +0000 (09:06 -0800)
commitdc2306834bff03132beb1f18d7a13b6e5080e488
tree127f89dbf882554385dd20e00bdc4b1deccba143
parentc96158c87f8f3bc41ff6e1343c680a10fb747d31
ACPI: do acpisleep dmi check when CONFIG_ACPI_SLEEP is set

commit 0ac1b1d7b7424cd6f129b5454b504b3cae746f0e upstream.

The current acpisleep DMI checks only run when CONFIG_SUSPEND is set.
And this may break hibernation on some platforms when CONFIG_SUSPEND
is cleared.

Move acpisleep DMI check into #ifdef CONFIG_ACPI_SLEEP instead.

[rjw: Added acpi_sleep_dmi_check() and rebased on top of earlier
 patches adding entries to acpisleep_dmi_table[].]
References: https://bugzilla.kernel.org/show_bug.cgi?id=45921
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/acpi/sleep.c