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

Commit 67e2edcf authored by Rohit Gupta's avatar Rohit Gupta Committed by Jonathan Avila
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>
[avilaj@codeaurora.org: Fix some merge conflicts.]
Signed-off-by: default avatarJonathan Avila <avilaj@codeaurora.org>
parent 7a840264
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -581,6 +581,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;

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

@@ -694,6 +697,9 @@ sugov_update_shared(struct update_util_data *hook, u64 time, unsigned int flags)
	unsigned long hs_util;
	unsigned int next_f;

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

	sg_cpu->util = sugov_get_util(sg_cpu);
	sg_cpu->flags = flags;
	raw_spin_lock(&sg_policy->update_lock);