diff options
author | Gregory Haskins <ghaskins@novell.com> | 2008-01-25 15:08:09 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-25 15:08:09 -0500 |
commit | e7693a362ec84bb5b6fd441d8a8b4b9d568a7a0c (patch) | |
tree | 078940540641a59aaf199695bfc6de3f062a987b /include/linux/sched.h | |
parent | 697f0a487f294e634a342764472b79375bb3158a (diff) |
sched: de-SCHED_OTHER-ize the RT path
The current wake-up code path tries to determine if it can optimize the
wake-up to "this_cpu" by computing load calculations. The problem is that
these calculations are only relevant to SCHED_OTHER tasks where load is king.
For RT tasks, priority is king. So the load calculation is completely wasted
bandwidth.
Therefore, we create a new sched_class interface to help with
pre-wakeup routing decisions and move the load calculation as a function
of CFS task's class.
Signed-off-by: Gregory Haskins <ghaskins@novell.com>
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index b07a2cf76401..6fbbf38555ac 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -827,6 +827,7 @@ struct sched_class { | |||
827 | void (*enqueue_task) (struct rq *rq, struct task_struct *p, int wakeup); | 827 | void (*enqueue_task) (struct rq *rq, struct task_struct *p, int wakeup); |
828 | void (*dequeue_task) (struct rq *rq, struct task_struct *p, int sleep); | 828 | void (*dequeue_task) (struct rq *rq, struct task_struct *p, int sleep); |
829 | void (*yield_task) (struct rq *rq); | 829 | void (*yield_task) (struct rq *rq); |
830 | int (*select_task_rq)(struct task_struct *p, int sync); | ||
830 | 831 | ||
831 | void (*check_preempt_curr) (struct rq *rq, struct task_struct *p); | 832 | void (*check_preempt_curr) (struct rq *rq, struct task_struct *p); |
832 | 833 | ||