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

Commit 69361514 authored by Jonathan Avila's avatar Jonathan Avila
Browse files

cpufreq: schedutil: Only apply single core busy logic with PELT



Currently, sugov_update_single will apply its busy logic, keeping frequency
high.  However, this is only required for PELT, not WALT; remove this
logic if PELT is not in use.

Change-Id: Ia0d9523d683568e373fa0d459eecbd3fae78fcff
Signed-off-by: default avatarJonathan Avila <avilaj@codeaurora.org>
parent 7a3cecc8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -605,7 +605,7 @@ static void sugov_update_single(struct update_util_data *hook, u64 time,
	if (!sugov_should_update_freq(sg_policy, time))
		return;

	busy = sugov_cpu_is_busy(sg_cpu);
	busy = use_pelt() && sugov_cpu_is_busy(sg_cpu);

	sg_cpu->util = util = sugov_get_util(sg_cpu);
	max = sg_cpu->max;