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

Commit 21fbbdc6 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 967c44cd
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -370,7 +370,7 @@ static void sugov_update_single(struct update_util_data *hook, u64 time,
	if (!sugov_should_update_freq(sg_policy, time))
	if (!sugov_should_update_freq(sg_policy, time))
		return;
		return;


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


	raw_spin_lock(&sg_policy->update_lock);
	raw_spin_lock(&sg_policy->update_lock);