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

Commit a07c435b 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 1ded649b
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -318,6 +318,9 @@ static void sugov_update_single(struct update_util_data *hook, u64 time,
	unsigned int next_f;
	unsigned int next_f;
	bool busy;
	bool busy;


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

	sugov_set_iowait_boost(sg_cpu, time, flags);
	sugov_set_iowait_boost(sg_cpu, time, flags);
	sg_cpu->last_update = time;
	sg_cpu->last_update = time;


@@ -396,6 +399,9 @@ static void sugov_update_shared(struct update_util_data *hook, u64 time,
	unsigned long util, max, hs_util;
	unsigned long util, max, hs_util;
	unsigned int next_f;
	unsigned int next_f;


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

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


	flags &= ~SCHED_CPUFREQ_RT_DL;
	flags &= ~SCHED_CPUFREQ_RT_DL;