+3
−25
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Currently, when the SW based Rbias control is enabled, we cancel
and schedule the delayed work to update sram data and temperature
data in the resume path. That can add up the delay in the resume
path as the cancel_delayed_work_sync will wait for the work to
complete which involves accessing the fuel gauge memory. Cancel
the delayed work to update sram data and temperature data in the
suspend path so that the delay would get reduced in the resume path.
Since Rbias is turned off by update_temp_data every time after the
temperature is updated, stop doing it again in the suspend path.
Change-Id: I148f1e5a9ddc8736952910cd2756ed3ca635bc3f
Signed-off-by:
Subbaraman Narayanamurthy <subbaram@codeaurora.org>