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:
Bill Richardson
2012-08-16 16:11:08 -07:00
committed by Gerrit
parent 7a47b59a6f
commit ea56741fb3

View File

@@ -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 */