Skip to content
Snippets Groups Projects
Commit 07a4f54e authored by Zhao Xuewen's avatar Zhao Xuewen Committed by Xuewen Zhao
Browse files

power:qpnp-bms: use jiffies in bms_resume interface


Bms_resume interface uses monotonic boottime. When watch is resumed by rtc_alarm(60s)
and the soc calculated period(20s) has arrived, it will set wake_lock(qpnp_soc_wake)
and triger bms module to recalculate soc. However, beacuse of the wake_lock, watch cost
at most 1.2s at one mins update and consumes more power.
When use jiffies, will reduce the soc calculated times, and reduce one mins update to 350ms.
Reduce the average power consumption of ambient mode about 0.3 ~ 0.6 mA.

Change-Id: I4dddb890c8c2d474c089885898cafc87b203c1cf
Signed-off-by: default avatarlibing <l00228880@notesmail.huawei.com>
parent 4c203520
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment