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

Skip to content
Commit 3cff1eea authored by Jie Cheng's avatar Jie Cheng Committed by Gerrit - the friendly Code Review server
Browse files

power: vm_bms: avoid a race condition in the calculate_reported_soc



When the charging is ended, the last_soc may be set to invalid for
a while. Add a check and do not calculate the reported soc if the
last_soc value is invalid.

Change-Id: Ia6987098dee5447c6852a276491930ddfbaa062e
CRs-Fixed: 848209
Signed-off-by: default avatarJie Cheng <rockiec@codeaurora.org>
parent 6e7f6c54
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