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 /kernel/sched.c | |
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 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index d4b815d345b3..46f42cac4eb1 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -2531,7 +2531,7 @@ static int try_to_wake_up(struct task_struct *p, unsigned int state, | |||
2531 | p->state = TASK_WAKING; | 2531 | p->state = TASK_WAKING; |
2532 | 2532 | ||
2533 | if (p->sched_class->task_waking) { | 2533 | if (p->sched_class->task_waking) { |
2534 | p->sched_class->task_waking(rq, p); | 2534 | p->sched_class->task_waking(p); |
2535 | en_flags |= ENQUEUE_WAKING; | 2535 | en_flags |= ENQUEUE_WAKING; |
2536 | } | 2536 | } |
2537 | 2537 | ||