diff options
author | Nicholas Troast <ntroast@codeaurora.org> | 2017-07-10 13:14:28 -0700 |
---|---|---|
committer | Nicholas Troast <ntroast@codeaurora.org> | 2017-08-04 11:17:03 -0700 |
commit | 96168e19d4062adfcfa3e524a6b19bb1b9791675 (patch) | |
tree | b701da583b951ad9612f949ef954c95258c3bdbd /include/kvm | |
parent | 811a8bd2ef12b0ca589714823ea6d85381d250b6 (diff) |
power: qpnp-fg-gen3: make TTF monotonic by limiting slope
Currently if there is a spike in system load or a thermal event which
causes the battery current to change dramatically then the TTF can jump.
While a battery is charging the TTF should be monotonically decreasing.
Track the TTF starting with the first estimate and set hard bounds of -2
and -0.1 on the slope. The negative slope ensures the TTF is
monotonically decreasing and the hard bounds on the slope smooth out
significant changes in the TTF.
Change-Id: I68a934599ff25bc5a9eb67b372b28a723532a540
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Diffstat (limited to 'include/kvm')
0 files changed, 0 insertions, 0 deletions