mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-29 18:11:05 +00:00
Display debug message before shutting down to protect the battery.
The serial console was showing that the CPU was being forcefully shut down, but I couldn't figure out why. Add a debug message so I'll know next time. BUG=none TEST=none BRANCH=none Change-Id: I6216711d03fd5e08190b9f0528a4bd8948b74dd8 Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/30606 Reviewed-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
@@ -104,6 +104,7 @@ static void poweroff_wait_ac(void)
|
||||
* TODO(rong): remove platform dependent code
|
||||
*/
|
||||
#ifdef CONFIG_TASK_X86POWER
|
||||
CPRINTF("[%T force shutdown to avoid damaging battery]\n");
|
||||
x86_power_force_shutdown();
|
||||
host_set_single_event(EC_HOST_EVENT_BATTERY_SHUTDOWN);
|
||||
#endif /* CONFIG_TASK_X86POWER */
|
||||
|
||||
Reference in New Issue
Block a user