summaryrefslogtreecommitdiff
path: root/kernel/sched/hmp.c
diff options
context:
space:
mode:
authorVikram Mulukutla <markivx@codeaurora.org>2017-03-20 13:41:37 -0700
committerMichael Bestas <mkbestas@lineageos.org>2019-12-23 23:43:40 +0200
commit0086bc47f8b54d30de0ced09e9bb45cb4fef47a8 (patch)
treeb5a24f13f592ac20770ddabbc640c7b9b4ec1c32 /kernel/sched/hmp.c
parent5c43a2afb87ea44e4d52585989a76b1e6a2e6ce6 (diff)
sched: cpufreq: HMP load reporting changes
Since HMP uses WALT, ensure that load is reported just once per window, with the exception of intercluster migrations. Further, try to report load whenever WALT stats are updated. Change-Id: I6539f8c916f6f271cf26f03249de7f953d5b12c2 Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
Diffstat (limited to 'kernel/sched/hmp.c')
-rw-r--r--kernel/sched/hmp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/sched/hmp.c b/kernel/sched/hmp.c
index 5337ac7fcba1..ac9c93bc45fc 100644
--- a/kernel/sched/hmp.c
+++ b/kernel/sched/hmp.c
@@ -3649,6 +3649,11 @@ void fixup_busy_time(struct task_struct *p, int new_cpu)
migrate_top_tasks(p, src_rq, dest_rq);
+ if (!same_freq_domain(new_cpu, task_cpu(p))) {
+ cpufreq_update_util(dest_rq, SCHED_CPUFREQ_INTERCLUSTER_MIG);
+ cpufreq_update_util(src_rq, SCHED_CPUFREQ_INTERCLUSTER_MIG);
+ }
+
if (p == src_rq->ed_task) {
src_rq->ed_task = NULL;
if (!dest_rq->ed_task)