summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2026-09-25 10:11:15 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2026-09-25 10:11:15 -0700
commitb9dbb658e2101ea37ad6953eb4e2ea234dd9681a (patch)
tree3029c670e9327d576c95f86f8490e4bc4ad44809 /drivers
parent4ba51ef66a7773c2ce4a5356e2f97f5c291463ca (diff)
parentec0d89150a9381d591344a9f6f5428655c227a7f (diff)
downloadlinux-b9dbb658e2101ea37ad6953eb4e2ea234dd9681a.tar.gz
linux-b9dbb658e2101ea37ad6953eb4e2ea234dd9681a.zip
Merge tag 'thermal-7.3-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull thermal control fix from Rafael Wysocki: "Fix a step-wise thermal governor issue that causes thermal mitigation to contiune forever after the temperature has dropped below the trip point threshold in some cases (Manaf Meethalavalappu Pallikunhi)" * tag 'thermal-7.3-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: thermal: gov_step_wise: Fix stale mitigation vote with non-zero lower bounds
Diffstat (limited to 'drivers')
-rw-r--r--drivers/thermal/gov_step_wise.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/thermal/gov_step_wise.c b/drivers/thermal/gov_step_wise.c
index ea277c466d8d..4fa4377f0d42 100644
--- a/drivers/thermal/gov_step_wise.c
+++ b/drivers/thermal/gov_step_wise.c
@@ -65,14 +65,12 @@ static unsigned long get_target_state(struct thermal_instance *instance,
min(instance->lower + 1, instance->upper),
instance->upper);
} else if (trend == THERMAL_TREND_DROPPING) {
- if (cur_state <= instance->lower)
- return THERMAL_NO_TARGET;
-
/*
- * If 'throttle' is false, no mitigation is necessary, so
- * request the lower state for this instance.
+ * If 'throttle' is false, no mitigation is necessary and
+ * passive polling is already deactivated, so clear this
+ * instance state by returning THERMAL_NO_TARGET.
*/
- return instance->lower;
+ return THERMAL_NO_TARGET;
}
return instance->target;