Skip to content
Commit 19263c9b authored by Ram Chandrasekar's avatar Ram Chandrasekar
Browse files

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: default avatarRam Chandrasekar <rkumbako@codeaurora.org>
parent debcd41d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment