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

Commit 7a3cecc8 authored by Kyle Yan's avatar Kyle Yan Committed by Jonathan Avila
Browse files

cpufreq: schedutil: Check SCHED_CPUFREQ_CONTINUE before changing frequency



There is no need to change cluster frequency if there are still other
notifications pending for the cluster. Check SCHED_CPUFREQ_CONTINUE
to check when final frequency adjustment should be made.

Change-Id: Ie6c7941eb1fdad5930844ec5022bdfae8923ce68
Signed-off-by: default avatarKyle Yan <kyan@codeaurora.org>
[avilaj@codeaurora.org: Fix a minor merge conflict.]
Signed-off-by: default avatarJonathan Avila <avilaj@codeaurora.org>
parent a5ca0d81
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -737,7 +737,8 @@ sugov_update_shared(struct update_util_data *hook, u64 time, unsigned int flags)
				sg_cpu->max, sg_cpu->walt_load.nl,
				sg_cpu->walt_load.pl, flags);

	if (sugov_should_update_freq(sg_policy, time)) {
	if (sugov_should_update_freq(sg_policy, time) &&
	    !(flags & SCHED_CPUFREQ_CONTINUE)) {
		next_f = sugov_next_freq_shared(sg_cpu, time);

		if (sg_policy->policy->fast_switch_enabled)