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

Skip to content
Commit ab330ef2 authored by Archana Sathyakumar's avatar Archana Sathyakumar
Browse files

msm-core: Prevent unnecessary wake up from suspend



If the temperature threshold crosses for any of the cores during
suspend, this causes system wakeup to recompute the stats when it is
not necessary.

Cancel the scheduled work and stop the kthread that resets the sensor
threshold to prevent any race condition with sensor trip cancellation
during suspend. Restart kthread after resume to read temperature sensors,
refresh the power stats and reset the sensor threshold for all the cpus.

Change-Id: I2cc19651727edbe519f9ad0865b371aed81ad5e0
Signed-off-by: default avatarArchana Sathyakumar <asathyak@codeaurora.org>
parent c5564588
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