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

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

Merge "lpm-levels: Enter shallowest state if predicted sleep length is less"

parents 24848aec e3af7dcf
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -626,8 +626,8 @@ static int cpu_power_select(struct cpuidle_device *dev,
			if (next_wakeup_us > max_residency[i]) {
				predicted = lpm_cpuidle_predict(dev, cpu,
					&idx_restrict, &idx_restrict_time);
				if (predicted < min_residency[i])
					predicted = 0;
				if (predicted && (predicted < min_residency[i]))
					predicted = min_residency[i];
			} else
				invalidate_predict_history(dev);
		}