Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit a5327905 authored by Shyam Kumar Thella's avatar Shyam Kumar Thella
Browse files

power: fg-alg: Fix condition to schedule TTF work



In the TTF algorithm, end ttf_work only during charging when SOC is
100% or charge is terminated.

ttf_work needs to be scheduled during discharging so that TTE
calculation can use ibatt_avg calculated from ibatt samples collected
every 10 seconds.

Fixes: 6a4db4ee ("power: fg-alg: Fix condition to schedule TTF work").

Change-Id: I59c3088706d014cd0d3d961cf302b0cf274ce2d6
Signed-off-by: default avatarShyam Kumar Thella <sthella@codeaurora.org>
parent e9b4bea3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment