Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7398ad95 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drivers: thermal: step-wise: Optimize mitigation request evaluation"

parents 96f991a2 40f107b9
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -76,6 +76,14 @@ static unsigned long get_target_state(struct thermal_instance *instance,
		return next_target;
	}

	/*
	 * If there is no new throttle request and if the thermal zone
	 * wasn't requesting any previous mitigation, then skip the
	 * evaluation.
	 */
	if (instance->target == THERMAL_NO_TARGET && !throttle)
		return next_target;

	switch (trend) {
	case THERMAL_TREND_RAISING:
		if (throttle) {