diff options
author | Dmitry Adamushko <dmitry.adamushko@gmail.com> | 2007-10-15 11:00:08 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2007-10-15 11:00:08 -0400 |
commit | f6b53205e17c8ca481c69ed579a35a650a4b481a (patch) | |
tree | d7820281757e3a2c7cfff7e38275261dcd077eab /include/linux/sched.h | |
parent | 4530d7ab0fb8d5056b68c376949e2d5c4db7817e (diff) |
sched: rework enqueue/dequeue_entity() to get rid of set_curr_task()
rework enqueue/dequeue_entity() to get rid of
sched_class::set_curr_task(). This simplifies sched_setscheduler(),
rt_mutex_setprio() and sched_move_tasks().
text data bss dec hex filename
24330 2734 20 27084 69cc sched.o.before
24233 2730 20 26983 6967 sched.o.after
Signed-off-by: Dmitry Adamushko <dmitry.adamushko@gmail.com>
Signed-off-by: Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.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 66169005f008..abcb02738d95 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -871,7 +871,6 @@ struct sched_class { | |||
871 | struct sched_domain *sd, enum cpu_idle_type idle, | 871 | struct sched_domain *sd, enum cpu_idle_type idle, |
872 | int *all_pinned, int *this_best_prio); | 872 | int *all_pinned, int *this_best_prio); |
873 | 873 | ||
874 | void (*set_curr_task) (struct rq *rq); | ||
875 | void (*task_tick) (struct rq *rq, struct task_struct *p); | 874 | void (*task_tick) (struct rq *rq, struct task_struct *p); |
876 | void (*task_new) (struct rq *rq, struct task_struct *p); | 875 | void (*task_new) (struct rq *rq, struct task_struct *p); |
877 | }; | 876 | }; |