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

Commit f9c7d751 authored by Kyle Yan's avatar Kyle Yan
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>
parent 80bb9184
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -502,7 +502,8 @@ static void sugov_update_shared(struct update_util_data *hook, u64 time,
				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)) {
		if (flags & SCHED_CPUFREQ_RT_DL)
			next_f = sg_policy->policy->cpuinfo.max_freq;
		else