drivers: thermal: step-wise: Update the mitigation clear logic
Step-wise algorithm will lower mitigation if the temperature is above the
trip and the trend is decreasing. This ends up in a case where the
temperature is bouncing up and down above the trip and the observed max
temperature is increasing steadily. This will eventually lead to
device reset for reaching the critical temperature.
To avoid this, update the step-wise algorithm to not reduce the
mitigation if the temperature is above the trip and the trend is
decreasing. The algorithm will apply the previous mitigation value in
the above case.
Change-Id: Ia734c19af5e732948a3f755c719ed9dedbf7ce3b
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
Loading
Please register or sign in to comment