mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-01 12:52:26 +00:00
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 <aaboagye@google.com> Reviewed-on: https://chromium-review.googlesource.com/388802 Commit-Ready: Aseda Aboagye <aaboagye@chromium.org> Tested-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Shawn N <shawnn@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
0b1745d6f9
commit
35352c8d79
@@ -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;
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user