diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-08-07 12:30:50 -0700 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-08-07 13:30:49 -0700 |
commit | 29cbe516631f15d548be1da101b6f04f692982d4 (patch) | |
tree | 978169e7c41a99df5d3899abc267bf76c47a359f /common/thermal.c | |
parent | a78bb5e560dbb68ae67855d1e2eb642b979e498a (diff) | |
download | chrome-ec-29cbe516631f15d548be1da101b6f04f692982d4.tar.gz |
Add host events for shutdown due to thermal or battery
BUG=chrome-os-partner:12353
TEST=hack the thermal monitoring and/or battery code to trigger a shutdown
then see that the events get set
Change-Id: I5ef2ac03cdd793ab0c50c0db518cba1ede3ea036
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/29429
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'common/thermal.c')
-rw-r--r-- | common/thermal.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/thermal.c b/common/thermal.c index 344279c0b3..3f570be058 100644 --- a/common/thermal.c +++ b/common/thermal.c @@ -110,6 +110,7 @@ static void overheated_action(void) cprintf(CC_CHIPSET, "[%T critical temperature; shutting down]\n"); x86_power_force_shutdown(); + host_set_single_event(EC_HOST_EVENT_THERMAL_SHUTDOWN); return; } |