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

Commit d8feee42 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drivers: thermal: step_wise: Optimize mitigation evaluation"

parents 04d9b697 1df9b489
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -53,6 +53,12 @@ static unsigned long get_target_state(struct thermal_instance *instance,
	unsigned long cur_state;
	unsigned long next_target;

	/*
	 * If the throttle condition is not reached and there is no
	 * previous mitigaiton request, then there is nothing to compute.
	 */
	if (!throttle && instance->target == THERMAL_NO_TARGET)
		return THERMAL_NO_TARGET;
	/*
	 * We keep this instance the way it is by default.
	 * Otherwise, we use the current state of the