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:Shyam Kumar Thella <sthella@codeaurora.org>
Loading
Please register or sign in to comment