diff options
author | Dmitry Adamushko <dmitry.adamushko@gmail.com> | 2007-10-15 11:00:07 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2007-10-15 11:00:07 -0400 |
commit | 30cfdcfc5f180fc21a3dad6ae3b7b2a9ee112186 (patch) | |
tree | 7178cde2a1d2b924cc0b66031f4eb02482fe54c2 /kernel/sched.c | |
parent | 7074badbcb4212d404a243e5c50efeb778ec3fc6 (diff) |
sched: do not keep current in the tree and get rid of sched_entity::fair_key
Get rid of 'sched_entity::fair_key'.
As a side effect, 'current' is not kept withing the tree for
SCHED_NORMAL/BATCH tasks anymore. This simplifies some parts of code
(e.g. entity_tick() and yield_task_fair()) and also somewhat optimizes
them (e.g. a single update_curr() now vs. dequeue/enqueue() before in
entity_tick()).
Signed-off-by: Dmitry Adamushko <dmitry.adamushko@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 6d1892192e21..3b104635a8ea 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -6610,7 +6610,6 @@ void normalize_rt_tasks(void) | |||
6610 | 6610 | ||
6611 | read_lock_irq(&tasklist_lock); | 6611 | read_lock_irq(&tasklist_lock); |
6612 | do_each_thread(g, p) { | 6612 | do_each_thread(g, p) { |
6613 | p->se.fair_key = 0; | ||
6614 | p->se.exec_start = 0; | 6613 | p->se.exec_start = 0; |
6615 | #ifdef CONFIG_SCHEDSTATS | 6614 | #ifdef CONFIG_SCHEDSTATS |
6616 | p->se.wait_start = 0; | 6615 | p->se.wait_start = 0; |