1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-02-15 04:42:02 +00:00
openmptcprouter/root/target/linux/bcm27xx/patches-5.15/950-0112-drivers-thermal-step_wise-avoid-throttling-at-hyster.patch

23 lines
804 B
Diff
Raw Normal View History

2022-04-22 15:00:47 +00:00
From 4d751240eaf0019819c17ede7e31309f4744f732 Mon Sep 17 00:00:00 2001
2021-11-24 17:32:01 +00:00
From: Serge Schneider <serge@raspberrypi.org>
Date: Tue, 2 Oct 2018 11:14:15 +0100
2022-04-22 15:00:47 +00:00
Subject: [PATCH 112/828] drivers: thermal: step_wise: avoid throttling at
2021-11-24 17:32:01 +00:00
hysteresis temperature after dropping below it
Signed-off-by: Serge Schneider <serge@raspberrypi.org>
---
drivers/thermal/gov_step_wise.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/thermal/gov_step_wise.c
+++ b/drivers/thermal/gov_step_wise.c
2022-04-22 15:00:47 +00:00
@@ -153,7 +153,7 @@ static void thermal_zone_trip_update(str
2021-11-24 17:32:01 +00:00
*/
if (tz->temperature >= trip_temp ||
(tz->temperature >= hyst_temp &&
- old_target != THERMAL_NO_TARGET)) {
+ old_target == instance->upper)) {
throttle = true;
trace_thermal_zone_trip(tz, trip, trip_type);
}