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

Commit 17a9ae72 authored by Sultan Alsawaf's avatar Sultan Alsawaf Committed by Razziell
Browse files

cpuidle: lpm-levels: Allow exit latencies equal to target latencies



This allows pm_qos votes with, say, 100 us for example to select power
levels with exit latencies equal to 100 us. The extra microsecond of
exit latency doesn't hurt.

Signed-off-by: default avatarSultan Alsawaf <sultan@kerneltoast.com>
parent e0f84633
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -474,7 +474,7 @@ static int cpu_power_select(struct cpuidle_device *dev,

		lvl_latency_us = pwr_params->latency_us;

		if (latency_us < lvl_latency_us)
		if (latency_us <= lvl_latency_us)
			break;

		if (next_event_us) {
@@ -592,7 +592,7 @@ static int cluster_select(struct lpm_cluster *cluster, bool from_idle)
					&level->num_cpu_votes))
			continue;

		if (from_idle && latency_us < pwr_params->latency_us)
		if (from_idle && latency_us <= pwr_params->latency_us)
			break;

		if (sleep_us < pwr_params->time_overhead_us)