mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
use discharging interval for FULL battery status
Keep the same delay work interval as discharging status for FULL battery status to reduce battery status updating and log printing for power save. Change-Id: Iedca4ad8706dbeee9d7de9258e21c3e0ed4f3234 Signed-off-by: Yonghua Yan <yanyh2@motorola.com> Reviewed-on: https://gerrit.mot.com/2508996 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jianqi Yang <yangj@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
e6405e163e
commit
a90e5819ea
1 changed files with 2 additions and 1 deletions
|
|
@ -2223,7 +2223,8 @@ static void mmi_charger_heartbeat_work(struct work_struct *work)
|
|||
|
||||
if (chip->factory_mode)
|
||||
hb_resch_time = HEARTBEAT_FACTORY_MS;
|
||||
else if (chip->max_charger_rate != MMI_POWER_SUPPLY_CHARGE_RATE_NONE)
|
||||
else if (chip->max_charger_rate != MMI_POWER_SUPPLY_CHARGE_RATE_NONE
|
||||
&& chip->combo_status != POWER_SUPPLY_STATUS_FULL)
|
||||
hb_resch_time = chip->heartbeat_interval;
|
||||
else
|
||||
hb_resch_time = chip->heartbeat_dischg_ms;
|
||||
|
|
|
|||
Loading…
Reference in a new issue