aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2009-12-16 12:04:40 -0500
committerIngo Molnar <mingo@elte.hu>2009-12-16 13:01:58 -0500
commitefbbd05a595343a413964ad85a2ad359b7b7efbd (patch)
treec1bf0d86134187e127a00067b50b0684c2988860 /include/linux/sched.h
parent881232b70b195768a71cd74ff4b4e8ab9502997b (diff)
sched: Add pre and post wakeup hooks
As will be apparent in the next patch, we need a pre wakeup hook for sched_fair task migration, hence rename the post wakeup hook and one pre wakeup. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Mike Galbraith <efault@gmx.de> LKML-Reference: <20091216170518.114746117@chello.nl> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 5c858f38e81a..2c9fa1ccebff 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1091,7 +1091,8 @@ struct sched_class {
1091 enum cpu_idle_type idle); 1091 enum cpu_idle_type idle);
1092 void (*pre_schedule) (struct rq *this_rq, struct task_struct *task); 1092 void (*pre_schedule) (struct rq *this_rq, struct task_struct *task);
1093 void (*post_schedule) (struct rq *this_rq); 1093 void (*post_schedule) (struct rq *this_rq);
1094 void (*task_wake_up) (struct rq *this_rq, struct task_struct *task); 1094 void (*task_waking) (struct rq *this_rq, struct task_struct *task);
1095 void (*task_woken) (struct rq *this_rq, struct task_struct *task);
1095 1096
1096 void (*set_cpus_allowed)(struct task_struct *p, 1097 void (*set_cpus_allowed)(struct task_struct *p,
1097 const struct cpumask *newmask); 1098 const struct cpumask *newmask);