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:
Archana Sathyakumar <asathyak@codeaurora.org>
Loading
Please register or sign in to comment