aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/sleep.c
diff options
context:
space:
mode:
authorOliver Neukum <oneukum@suse.de>2014-01-10 04:51:53 -0500
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-01-10 19:39:10 -0500
commit5c551e624abba6782034edd5b9eb58ac6f146b38 (patch)
treed3cf5287d3b54705c631000a340c430586a891c0 /drivers/acpi/sleep.c
parentd6e0a2dd12f4067a5bcefb8bbd8ddbeff800afbc (diff)
ACPI / sleep: remove panic in case hardware has changed after S4
Some BIOSes change hardware based on the state of a laptop's lid. If the lid is closed, the touchpad is disabled and the checksum changes. Windows 8 no longer aborts resume if the checksum has changed. Signed-off-by: Oliver Neukum <oneukum@suse.de> [rjw: Use pr_crit() for the message and don't break the string] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/sleep.c')
-rw-r--r--drivers/acpi/sleep.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c
index 721e949e606e..32f7dee2f16b 100644
--- a/drivers/acpi/sleep.c
+++ b/drivers/acpi/sleep.c
@@ -670,11 +670,8 @@ static void acpi_hibernation_leave(void)
670 /* Reprogram control registers */ 670 /* Reprogram control registers */
671 acpi_leave_sleep_state_prep(ACPI_STATE_S4); 671 acpi_leave_sleep_state_prep(ACPI_STATE_S4);
672 /* Check the hardware signature */ 672 /* Check the hardware signature */
673 if (facs && s4_hardware_signature != facs->hardware_signature) { 673 if (facs && s4_hardware_signature != facs->hardware_signature)
674 printk(KERN_EMERG "ACPI: Hardware changed while hibernated, " 674 pr_crit("ACPI: Hardware changed while hibernated, success doubtful!\n");
675 "cannot resume!\n");
676 panic("ACPI S4 hardware signature mismatch");
677 }
678 /* Restore the NVS memory area */ 675 /* Restore the NVS memory area */
679 suspend_nvs_restore(); 676 suspend_nvs_restore();
680 /* Allow EC transactions to happen. */ 677 /* Allow EC transactions to happen. */