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

Skip to content
Commit 19964644 authored by Manaf Meethalavalappu Pallikunhi's avatar Manaf Meethalavalappu Pallikunhi Committed by Gerrit - the friendly Code Review server
Browse files

drivers: thermal: Fix zone passive counter update not accounted correctly



Thermal framework resets all thermal zone passive counter during
resume path. But governors are not checking this while handling
mitigation. If mitigation is already applied prior to suspend and
it stays same post suspend, governor assumes it is already mitigated
and passive counter is already updated. But in resume path, it resets
passive counter prior to each thermal zone update. For sensor which
doesn't support clear interrupt and relies on thermal framework to
clear, can lead to a case where thermal zone is always in mitigated
state even though thermal zone temperature is in below clear trip.

Update stepwise and low limits governor logic for passive counter
update for resume scenario.

Change-Id: I055deb5c2a79e032a41bcbbe097221d0b892946a
Signed-off-by: default avatarManaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
parent 0abd32ff
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