diff mbox series

s3: fix the display time of resume for Timekeeping suspended string missing

Message ID 20230516101206.53913-1-ivan.hu@canonical.com
State Accepted
Headers show
Series s3: fix the display time of resume for Timekeeping suspended string missing | expand

Commit Message

ivanhu May 16, 2023, 10:12 a.m. UTC
Buglink: https://bugs.launchpad.net/fwts/+bug/2019727

Signed-off-by: Ivan Hu <ivan.hu@canonical.com>
---
 src/acpi/s3/s3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/src/acpi/s3/s3.c b/src/acpi/s3/s3.c
index 9afae102..ba009426 100644
--- a/src/acpi/s3/s3.c
+++ b/src/acpi/s3/s3.c
@@ -510,7 +510,7 @@  static int s3_scan_times(
 			s3_suspend_finish = ts;
 			continue;
 		}
-		if (strstr(txt, "Timekeeping suspended")) {
+		if (strstr(txt, "Timekeeping suspended") || strstr(txt, "resume from suspend-to-idle")) {
 			s3_resume_start = ts;
 			if (s3_suspend_finish < 0.0)
 				s3_suspend_finish = previous_ts;