diff mbox

[RFC,3/3] ACPI: Add wakeup reason support

Message ID fb7408a260920fc0e93f7292c2a1dc7f7b6a547e.1513233415.git.lv.zheng@intel.com (mailing list archive)
State RFC, archived
Headers show

Commit Message

Lv Zheng Dec. 14, 2017, 6:38 a.m. UTC
This patch adds kernel side invocation of wakeup reason detection
mechanism.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
---
 drivers/acpi/sleep.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox

Patch

diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c
index 7c70c3c..9b245a6 100644
--- a/drivers/acpi/sleep.c
+++ b/drivers/acpi/sleep.c
@@ -963,6 +963,8 @@  static int acpi_s2idle_prepare(void)
 	}
 	if (acpi_sci_irq_valid())
 		enable_irq_wake(acpi_sci_irq);
+	pr_info(PREFIX "Low-level suspend completed\n");
+	acpi_detect_wakeup_reasons();
 
 	return 0;
 }