From 35352c8d7973fc43d3de41b33189febc808a1026 Mon Sep 17 00:00:00 2001 From: Aseda Aboagye Date: Fri, 23 Sep 2016 13:10:43 -0700 Subject: [PATCH] power: common: Print RTC when changing states. In order to help correlate EC logs with those from the kernel, it was suggested that the EC could periodically print the RTC time. This commit prints out the RTC time when changing power states. BUG=chrome-os-partner:57731 BRANCH=gru TEST=Build and flash kevin. Boot system up and suspend. Verify that RTC times are logged to the EC console. Change-Id: Ia1ee1ec88c6733f863a703fb3f841ab74b80fcb9 Signed-off-by: Aseda Aboagye Reviewed-on: https://chromium-review.googlesource.com/388802 Commit-Ready: Aseda Aboagye Tested-by: Aseda Aboagye Reviewed-by: Shawn N --- power/common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/power/common.c b/power/common.c index 5ec09d72a9..7e213f0569 100644 --- a/power/common.c +++ b/power/common.c @@ -169,6 +169,9 @@ void power_set_state(enum power_state new_state) if (new_state == POWER_G3) last_shutdown_time = get_time().val; + /* Print out the RTC value to help correlate EC and kernel logs. */ + print_system_rtc(CC_CHIPSET); + state = new_state; /*