Android Wear 5.1.1 Release 0.23
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: libing <l00228880@notesmail.huawei.com>
1 file changed