power: qpnp-bms: hold wake lock and recalc faster on low voltage

When the battery is low, it is risky to let the system go into power
collapse. The battery may drain until the system goes into UVLO
without the OS doing a clean shutdown.

Fix this by holding a wakelock at low voltages and calculating SoC
faster until the battery hits 0% and the OS shuts down.

Change-Id: Ibb9de5676a750d73633995a36b3205c5a0a81359
Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>
3 files changed