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

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

Merge "cpufreq: schedutil: Fix the incorrect average capacity calculation"

parents 68ee8265 3937dc1e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -174,10 +174,12 @@ static void sugov_track_cycles(struct sugov_policy *sg_policy,
				u64 upto)
{
	u64 delta_ns, cycles;
	u64 next_ws = sg_policy->last_ws + sched_ravg_window;

	if (unlikely(!sysctl_sched_use_walt_cpu_util))
		return;

	upto = min(upto, next_ws);
	/* Track cycles in current window */
	delta_ns = upto - sg_policy->last_cyc_update_time;
	delta_ns *= prev_freq;