summaryrefslogtreecommitdiffstats
path: root/sys-kernel/boest-v5.0.15/raspberrypi/0140-drivers-thermal-step_wise-avoid-throttling-at-hyster.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sys-kernel/boest-v5.0.15/raspberrypi/0140-drivers-thermal-step_wise-avoid-throttling-at-hyster.patch')
-rw-r--r--sys-kernel/boest-v5.0.15/raspberrypi/0140-drivers-thermal-step_wise-avoid-throttling-at-hyster.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/sys-kernel/boest-v5.0.15/raspberrypi/0140-drivers-thermal-step_wise-avoid-throttling-at-hyster.patch b/sys-kernel/boest-v5.0.15/raspberrypi/0140-drivers-thermal-step_wise-avoid-throttling-at-hyster.patch
new file mode 100644
index 00000000..d77d5faa
--- /dev/null
+++ b/sys-kernel/boest-v5.0.15/raspberrypi/0140-drivers-thermal-step_wise-avoid-throttling-at-hyster.patch
@@ -0,0 +1,24 @@
+From 4a1cbe8455e147d276e659edc60d5ef8724b46c6 Mon Sep 17 00:00:00 2001
+From: Serge Schneider <serge@raspberrypi.org>
+Date: Tue, 2 Oct 2018 11:14:15 +0100
+Subject: [PATCH 140/194] drivers: thermal: step_wise: avoid throttling at
+ hysteresis temperature after dropping below it
+
+Signed-off-by: Serge Schneider <serge@raspberrypi.org>
+---
+ drivers/thermal/step_wise.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/thermal/step_wise.c b/drivers/thermal/step_wise.c
+index cf07e2269291..da695d8f2939 100644
+--- a/drivers/thermal/step_wise.c
++++ b/drivers/thermal/step_wise.c
+@@ -167,7 +167,7 @@ static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip)
+ */
+ 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);
+ }