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

Commit ab968a4f authored by Vikram Mulukutla's avatar Vikram Mulukutla Committed by Syed Rameez Mustafa
Browse files

sched: cpufreq: Update cpufreq once in a WALT window



Multiple updates to cpufreq are unnecessary and potentially
buggy due to the dependence on current frequency. Ensure
that if WALT is enabled, we send only one load report per
window

Change-Id: I2a4e11e237a1cc6d2910a341c5ac20ea847befd8
Signed-off-by: default avatarVikram Mulukutla <markivx@codeaurora.org>
parent eb5eab22
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2201,7 +2201,7 @@ static inline void cpufreq_update_util(struct rq *rq, unsigned int flags)
{
	struct update_util_data *data;

#ifdef CONFIG_SCHED_HMP
#ifdef CONFIG_SCHED_WALT
	/*
	 * Skip if we've already reported, but not if this is an inter-cluster
	 * migration