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:
Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
Loading
Please register or sign in to comment