charging: modify heartbeat cycle to 100s

There is a case that will make the system suspend failing for
mmi,charger wakelock and last for several minutes.
The reason is that the system suspend has the same 60s request
intervals as mmi charger heartbeat delay work, which will request
mmi,charger wakelock.

To avoid this two task run into resonating state, it's feasible to
change the mmi charger heartbeat interval to 100s.

Change-Id: Ic284423f3178caca485e857c7f367da19452066e
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2026220
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
mahj8 2021-07-28 14:54:46 +08:00 • committed by Haijian Ma
commit 39ba05c514

View file

@ -204,7 +204,7 @@ enum {
#define HEARTBEAT_DUAL_DELAY_OCP_MS 1000
#define HEARTBEAT_OCP_SETTLE_CNT 7
#define HEARTBEAT_FACTORY_MS 1000
#define HEARTBEAT_DISCHARGE_MS 60000
#define HEARTBEAT_DISCHARGE_MS 100000
#define EMPTY_CYCLES 101