After introduced rb tree for tracking task on rq, rq::cfs_tasks this node is not used anymore. So this patch removes it.
Signed-off-by: Leo Yan leo.yan@linaro.org --- kernel/sched/core.c | 2 -- kernel/sched/fair.c | 2 -- kernel/sched/sched.h | 2 -- 3 files changed, 6 deletions(-)
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 778335a..5d80bf8 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -7812,8 +7812,6 @@ void __init sched_init(void) rq->irqload_ts = 0; #endif
- INIT_LIST_HEAD(&rq->cfs_tasks); - rq_attach_root(rq, &def_root_domain); #ifdef CONFIG_NO_HZ_COMMON rq->nohz_flags = 0; diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 0c68c80..77ca4df 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -2423,7 +2423,6 @@ account_entity_enqueue(struct cfs_rq *cfs_rq, struct sched_entity *se) struct rq *rq = rq_of(cfs_rq);
account_numa_enqueue(rq, task_of(se)); - list_add(&se->group_node, &rq->cfs_tasks); __enqueue_sequence(rq, se); } #endif @@ -2438,7 +2437,6 @@ account_entity_dequeue(struct cfs_rq *cfs_rq, struct sched_entity *se) update_load_sub(&rq_of(cfs_rq)->load, se->load.weight); if (entity_is_task(se)) { account_numa_dequeue(rq_of(cfs_rq), task_of(se)); - list_del_init(&se->group_node); __dequeue_sequence(rq_of(cfs_rq), se); } cfs_rq->nr_running--; diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index 7284a45..3907bc9 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -659,8 +659,6 @@ struct rq { int cpu; int online;
- struct list_head cfs_tasks; - u64 rt_avg; u64 age_stamp; u64 idle_stamp; -- 1.9.1