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

Commit 42931bbf authored by Rohit Gupta's avatar Rohit Gupta
Browse files

cpufreq: schedutil: Avoid processing certain notifications



Prevent processing notifications from scheduler for pl if pl is
not enabled.

Change-Id: I091ee107af21fe94177e0bd051f8ee546f3a1678
Signed-off-by: default avatarRohit Gupta <rohgup@codeaurora.org>
parent a0a014ad
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -349,6 +349,9 @@ static void sugov_update_single(struct update_util_data *hook, u64 time,
	unsigned int next_f;
	bool busy;

	if (!sg_policy->tunables->pl && flags & SCHED_CPUFREQ_PL)
		return;

	flags &= ~SCHED_CPUFREQ_RT_DL;
	sugov_set_iowait_boost(sg_cpu, time, flags);
	sg_cpu->last_update = time;
@@ -458,6 +461,9 @@ static void sugov_update_shared(struct update_util_data *hook, u64 time,
	unsigned long util, max, hs_util;
	unsigned int next_f;

	if (!sg_policy->tunables->pl && flags & SCHED_CPUFREQ_PL)
		return;

	sugov_get_util(&util, &max, sg_cpu->cpu);

	flags &= ~SCHED_CPUFREQ_RT_DL;