diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2011-04-05 11:23:47 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-04-14 02:52:36 -0400 |
commit | 74f8e4b2335de45485b8d5b31a504747f13c8070 (patch) | |
tree | f8f8ba3e346239c44177d09620e65b18870d911f /include/linux/sched.h | |
parent | 7608dec2ce2004c234339bef8c8074e5e601d0e9 (diff) |
sched: Remove rq argument to sched_class::task_waking()
In preparation of calling this without rq->lock held, remove the
dependency on the rq argument.
Reviewed-by: Frank Rowand <frank.rowand@am.sony.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Nick Piggin <npiggin@kernel.dk>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/r/20110405152729.071474242@chello.nl
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index ff4e2f9c24a7..7f5732f8c618 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -1048,8 +1048,12 @@ struct sched_domain; | |||
1048 | #define WF_FORK 0x02 /* child wakeup after fork */ | 1048 | #define WF_FORK 0x02 /* child wakeup after fork */ |
1049 | 1049 | ||
1050 | #define ENQUEUE_WAKEUP 1 | 1050 | #define ENQUEUE_WAKEUP 1 |
1051 | #define ENQUEUE_WAKING 2 | 1051 | #define ENQUEUE_HEAD 2 |
1052 | #define ENQUEUE_HEAD 4 | 1052 | #ifdef CONFIG_SMP |
1053 | #define ENQUEUE_WAKING 4 /* sched_class::task_waking was called */ | ||
1054 | #else | ||
1055 | #define ENQUEUE_WAKING 0 | ||
1056 | #endif | ||
1053 | 1057 | ||
1054 | #define DEQUEUE_SLEEP 1 | 1058 | #define DEQUEUE_SLEEP 1 |
1055 | 1059 | ||
@@ -1071,7 +1075,7 @@ struct sched_class { | |||
1071 | 1075 | ||
1072 | void (*pre_schedule) (struct rq *this_rq, struct task_struct *task); | 1076 | void (*pre_schedule) (struct rq *this_rq, struct task_struct *task); |
1073 | void (*post_schedule) (struct rq *this_rq); | 1077 | void (*post_schedule) (struct rq *this_rq); |
1074 | void (*task_waking) (struct rq *this_rq, struct task_struct *task); | 1078 | void (*task_waking) (struct task_struct *task); |
1075 | void (*task_woken) (struct rq *this_rq, struct task_struct *task); | 1079 | void (*task_woken) (struct rq *this_rq, struct task_struct *task); |
1076 | 1080 | ||
1077 | void (*set_cpus_allowed)(struct task_struct *p, | 1081 | void (*set_cpus_allowed)(struct task_struct *p, |