summaryrefslogtreecommitdiff
path: root/kernel/sched/sched.h
diff options
context:
space:
mode:
authorVikram Mulukutla <markivx@codeaurora.org>2017-06-06 11:58:27 -0700
committerGeorg Veichtlbauer <georg@vware.at>2023-07-16 12:47:43 +0200
commit6adb092856e806d91f3fc22dff0ef36506dd0bae (patch)
tree5f19cc4f680b0c21643621ae80607e66b36479c2 /kernel/sched/sched.h
parent0fa652ee00f5aaf9fdebea0e0f840e59bdb6795b (diff)
sched: cpufreq: Limit governor updates to WALT changes alone
It's not necessary to keep reporting load to the governor if it doesn't change in a window. Limit updates to when we expect load changes - after window rollover and when we send updates related to intercluster migrations. [beykerykt]: Adapt for HMP Change-Id: I3232d40f3d54b0b81cfafdcdb99b534df79327bf Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
Diffstat (limited to 'kernel/sched/sched.h')
-rw-r--r--kernel/sched/sched.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
index 90cc450dff7e..40da1a509ded 100644
--- a/kernel/sched/sched.h
+++ b/kernel/sched/sched.h
@@ -2856,8 +2856,10 @@ static inline void cpufreq_update_util(struct rq *rq, unsigned int flags)
#ifdef CONFIG_SCHED_HMP
/*
* Skip if we've already reported, but not if this is an inter-cluster
- * migration
+ * migration. Also only allow WALT update sites.
*/
+ if (!(flags & SCHED_CPUFREQ_WALT))
+ return;
if (!sched_disable_window_stats &&
(rq->load_reported_window == rq->window_start) &&
!(flags & SCHED_CPUFREQ_INTERCLUSTER_MIG))