diff options
author | Sravan Kumar Ambapuram <asravan@codeaurora.org> | 2014-05-07 11:15:38 +0530 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2015-11-01 04:29:12 -0800 |
commit | 66cf01650b8c2ce0f2f775b056390cb49968f97d (patch) | |
tree | 6b764ee108b967f01321d847a257252341df9bb2 /healthd | |
parent | 705dd14c10b53e662f6df958297bf677d2a91397 (diff) | |
download | system_core-66cf01650b8c2ce0f2f775b056390cb49968f97d.zip system_core-66cf01650b8c2ce0f2f775b056390cb49968f97d.tar.gz system_core-66cf01650b8c2ce0f2f775b056390cb49968f97d.tar.bz2 |
healthd: Disable the RTC wakeup timer
The timer is used here to avoid battery drained to zero. But the periodic
wakeup during suspend should not be needed as MSM PMIC already support
that by trigger interrupt to avoid the critical low battery situation.
This will save more power. And if the design is not support HW interrupt
of low battery, need to enable the timer to periodic check.
Change-Id: I040b4bc8548dc59b5e7cacb9a5a8a3557604f458
Signed-off-by: arter97 <qkrwngud825@gmail.com>
Diffstat (limited to 'healthd')
-rw-r--r-- | healthd/healthd.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/healthd/healthd.cpp b/healthd/healthd.cpp index 61a6277..1489912 100644 --- a/healthd/healthd.cpp +++ b/healthd/healthd.cpp @@ -37,8 +37,15 @@ using namespace android; // Periodic chores intervals in seconds +#ifdef QCOM_HARDWARE #define DEFAULT_PERIODIC_CHORES_INTERVAL_FAST (60 * 10) +//For the designs without low battery detection,need to enable +//the default 60*10s wakeup timer to periodic check. +#define DEFAULT_PERIODIC_CHORES_INTERVAL_SLOW -1 +#else +#define DEFAULT_PERIODIC_CHORES_INTERVAL_FAST (60 * 1) #define DEFAULT_PERIODIC_CHORES_INTERVAL_SLOW (60 * 10) +#endif static struct healthd_config healthd_config = { .periodic_chores_interval_fast = DEFAULT_PERIODIC_CHORES_INTERVAL_FAST, |