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 /include/linux/sched.h | |
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 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 572df1bbaeec..f776a30b403e 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -891,7 +891,6 @@ struct load_weight { | |||
891 | * 6 se->load.weight | 891 | * 6 se->load.weight |
892 | */ | 892 | */ |
893 | struct sched_entity { | 893 | struct sched_entity { |
894 | s64 fair_key; | ||
895 | struct load_weight load; /* for load-balancing */ | 894 | struct load_weight load; /* for load-balancing */ |
896 | struct rb_node run_node; | 895 | struct rb_node run_node; |
897 | unsigned int on_rq; | 896 | unsigned int on_rq; |