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

Commit 57e62ee9 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 c4f187cf 16540cf2
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -181,10 +181,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 (use_pelt())
		return;

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