diff options
author | Steven Rostedt <rostedt@goodmis.org> | 2008-01-25 15:08:22 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-25 15:08:22 -0500 |
commit | 9a897c5a6701bcb6f099f7ca20194999102729fd (patch) | |
tree | 9c5415d5e2dd115660200cbd246fe1343cd5cd5c /include/linux/sched.h | |
parent | 4bf0b77158d581c952af237aec79d0604b78fe27 (diff) |
sched: RT-balance, replace hooks with pre/post schedule and wakeup methods
To make the main sched.c code more agnostic to the schedule classes.
Instead of having specific hooks in the schedule code for the RT class
balancing. They are replaced with a pre_schedule, post_schedule
and task_wake_up methods. These methods may be used by any of the classes
but currently, only the sched_rt class implements them.
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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 2e69f19369e4..c67d2c2f0111 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -843,6 +843,9 @@ struct sched_class { | |||
843 | int (*move_one_task) (struct rq *this_rq, int this_cpu, | 843 | int (*move_one_task) (struct rq *this_rq, int this_cpu, |
844 | struct rq *busiest, struct sched_domain *sd, | 844 | struct rq *busiest, struct sched_domain *sd, |
845 | enum cpu_idle_type idle); | 845 | enum cpu_idle_type idle); |
846 | void (*pre_schedule) (struct rq *this_rq, struct task_struct *task); | ||
847 | void (*post_schedule) (struct rq *this_rq); | ||
848 | void (*task_wake_up) (struct rq *this_rq, struct task_struct *task); | ||
846 | #endif | 849 | #endif |
847 | 850 | ||
848 | void (*set_curr_task) (struct rq *rq); | 851 | void (*set_curr_task) (struct rq *rq); |