power: qpnp-bms: Relax UUC restriction based on time
Previously, the Unusuable Charge calculation was restricted
to changing by 1% every time it was recalculated in order to
meet linearity demands.
However, if the phone is asleep, it might take much longer
than 20 seconds for the UUC to be recalculated, in which it
could have drifted a lot more than 1% due to temperature
changes.
Fix this by allowing UUC to change by an additional 1% for
every 60 real seconds between successive UUC calculations
Change-Id: I59f93b144f51c58bf8d2f67f974fb708b2ff6502
Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>
1 file changed