diff options
author | Yong Zhang <yong.zhang0@gmail.com> | 2010-01-29 01:58:47 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-02-04 03:57:33 -0500 |
commit | 23577256953c870de9b724c3a2611ce7be6a1e4e (patch) | |
tree | 3985914f7728d2353933cf2ff72af1bd07295e1c /kernel | |
parent | 74b7eb5885415ed41d012f432398d1b697115b5f (diff) |
sched: Remove member rt_se from struct rt_rq
It's a duplicate of tg->rt_se[cpu] and the only usage is
sched_rt_rq_dequeue() and sched_rt_rq_enqueue(). After the
first patch to those two function. rt_se can be removed.
Signed-off-by: Yong Zhang <yong.zhang0@gmail.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <2674af741001282258q38781619u653ca4a7dd267347@mail.gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 2386f5440002..6cee227b1459 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -436,7 +436,6 @@ struct rt_rq { | |||
436 | struct rq *rq; | 436 | struct rq *rq; |
437 | struct list_head leaf_rt_rq_list; | 437 | struct list_head leaf_rt_rq_list; |
438 | struct task_group *tg; | 438 | struct task_group *tg; |
439 | struct sched_rt_entity *rt_se; | ||
440 | #endif | 439 | #endif |
441 | }; | 440 | }; |
442 | 441 | ||
@@ -7592,7 +7591,6 @@ static void init_tg_rt_entry(struct task_group *tg, struct rt_rq *rt_rq, | |||
7592 | tg->rt_rq[cpu] = rt_rq; | 7591 | tg->rt_rq[cpu] = rt_rq; |
7593 | init_rt_rq(rt_rq, rq); | 7592 | init_rt_rq(rt_rq, rq); |
7594 | rt_rq->tg = tg; | 7593 | rt_rq->tg = tg; |
7595 | rt_rq->rt_se = rt_se; | ||
7596 | rt_rq->rt_runtime = tg->rt_bandwidth.rt_runtime; | 7594 | rt_rq->rt_runtime = tg->rt_bandwidth.rt_runtime; |
7597 | if (add) | 7595 | if (add) |
7598 | list_add(&rt_rq->leaf_rt_rq_list, &rq->leaf_rt_rq_list); | 7596 | list_add(&rt_rq->leaf_rt_rq_list, &rq->leaf_rt_rq_list); |