[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1461958364-675-8-git-send-email-dietmar.eggemann@arm.com>
Date: Fri, 29 Apr 2016 20:32:44 +0100
From: Dietmar Eggemann <dietmar.eggemann@....com>
To: Peter Zijlstra <peterz@...radead.org>
Cc: linux-kernel@...r.kernel.org,
Morten Rasmussen <morten.rasmussen@....com>
Subject: [PATCH 7/7] sched/fair: Use group_cfs_rq(se) instead of se->my_q
Replace all occurrences of se->my_q right values with group_cfs_rq(se)
so it is used consistently to access the cfs_rq owned by this se/tg.
Signed-off-by: Dietmar Eggemann <dietmar.eggemann@....com>
---
kernel/sched/fair.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 58da724b6ca4..63ed09154a41 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -4898,17 +4898,17 @@ static long effective_load(struct task_group *tg, int cpu, long wl, long wg)
for_each_sched_entity(se) {
long w, W;
- tg = se->my_q->tg;
+ tg = group_cfs_rq(se)->tg;
/*
* W = @wg + \Sum rw_j
*/
- W = wg + calc_tg_weight(tg, se->my_q);
+ W = wg + calc_tg_weight(tg, group_cfs_rq(se));
/*
* w = rw_i + @wl
*/
- w = cfs_rq_load_avg(se->my_q) + wl;
+ w = cfs_rq_load_avg(group_cfs_rq(se)) + wl;
/*
* wl = S * s'_i; see (2)
@@ -8528,7 +8528,7 @@ void init_tg_cfs_entry(struct task_group *tg, struct cfs_rq *cfs_rq,
se->cfs_rq = &rq->cfs;
se->depth = 0;
} else {
- se->cfs_rq = parent->my_q;
+ se->cfs_rq = group_cfs_rq(parent);
se->depth = parent->depth + 1;
}
--
1.9.1
Powered by blists - more mailing lists