* [RFC PATCH 2/2] sched: remove member rt_se from struct rt_rq
@ 2010-01-29 6:58 Yong Zhang
2010-02-04 9:56 ` [tip:sched/core] sched: Remove " tip-bot for Yong Zhang
0 siblings, 1 reply; 2+ messages in thread
From: Yong Zhang @ 2010-01-29 6:58 UTC (permalink / raw)
To: linux-kernel; +Cc: Ingo Molnar, Peter Zijlstra, Thomas Gleixner, rusty
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: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Rusty Russell <rusty@rustcorp.com.au>
---
kernel/sched.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/kernel/sched.c b/kernel/sched.c
index 4508fe7..dc04041 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -478,7 +478,6 @@ struct rt_rq {
struct rq *rq;
struct list_head leaf_rt_rq_list;
struct task_group *tg;
- struct sched_rt_entity *rt_se;
#endif
};
@@ -9437,7 +9436,6 @@ static void init_tg_rt_entry(struct task_group
*tg, struct rt_rq *rt_rq,
tg->rt_rq[cpu] = rt_rq;
init_rt_rq(rt_rq, rq);
rt_rq->tg = tg;
- rt_rq->rt_se = rt_se;
rt_rq->rt_runtime = tg->rt_bandwidth.rt_runtime;
if (add)
list_add(&rt_rq->leaf_rt_rq_list, &rq->leaf_rt_rq_list);
--
1.6.3.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* [tip:sched/core] sched: Remove member rt_se from struct rt_rq
2010-01-29 6:58 [RFC PATCH 2/2] sched: remove member rt_se from struct rt_rq Yong Zhang
@ 2010-02-04 9:56 ` tip-bot for Yong Zhang
0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Yong Zhang @ 2010-02-04 9:56 UTC (permalink / raw)
To: linux-tip-commits
Cc: linux-kernel, hpa, mingo, a.p.zijlstra, rusty, yong.zhang0, tglx, mingo
Commit-ID: 23577256953c870de9b724c3a2611ce7be6a1e4e
Gitweb: http://git.kernel.org/tip/23577256953c870de9b724c3a2611ce7be6a1e4e
Author: Yong Zhang <yong.zhang0@gmail.com>
AuthorDate: Fri, 29 Jan 2010 14:58:47 +0800
Committer: Ingo Molnar <mingo@elte.hu>
CommitDate: Thu, 4 Feb 2010 09:57:33 +0100
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>
---
kernel/sched.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/kernel/sched.c b/kernel/sched.c
index 2386f54..6cee227 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -436,7 +436,6 @@ struct rt_rq {
struct rq *rq;
struct list_head leaf_rt_rq_list;
struct task_group *tg;
- struct sched_rt_entity *rt_se;
#endif
};
@@ -7592,7 +7591,6 @@ static void init_tg_rt_entry(struct task_group *tg, struct rt_rq *rt_rq,
tg->rt_rq[cpu] = rt_rq;
init_rt_rq(rt_rq, rq);
rt_rq->tg = tg;
- rt_rq->rt_se = rt_se;
rt_rq->rt_runtime = tg->rt_bandwidth.rt_runtime;
if (add)
list_add(&rt_rq->leaf_rt_rq_list, &rq->leaf_rt_rq_list);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-02-04 9:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-29 6:58 [RFC PATCH 2/2] sched: remove member rt_se from struct rt_rq Yong Zhang
2010-02-04 9:56 ` [tip:sched/core] sched: Remove " tip-bot for Yong Zhang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®