From e96a8dc7cf707e847da138c8450f955aa8154d5f Mon Sep 17 00:00:00 2001 From: Vic Yang Date: Tue, 15 Oct 2013 11:01:43 +0800 Subject: Check cut off even if the AP is in S0/S3 We were relying on the fact that AP shuts down when battery is below 2.5%. However, this does not guarantee cell voltages don't hit 3.2V. Let's also check cut off condition in S0 and S3. BUG=chrome-os-partner:23055 TEST=None BRANCH=Spring Change-Id: If80ef380802017ac1c5736a9a2ff8bf6d2819b59 Signed-off-by: Vic Yang Reviewed-on: https://chromium-review.googlesource.com/173072 Reviewed-by: Vincent Palatin --- common/battery_spring.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/common/battery_spring.c b/common/battery_spring.c index b1f248fae9..351745a1a5 100644 --- a/common/battery_spring.c +++ b/common/battery_spring.c @@ -69,8 +69,6 @@ static int battery_want_cut_off(void) if (battery_is_cut_off()) return 0; - if (chipset_in_state(CHIPSET_STATE_ON | CHIPSET_STATE_SUSPEND)) - return 0; if (board_get_ac()) return 0; -- cgit v1.2.1