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_fair.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_fair.c')
-rw-r--r-- | kernel/sched_fair.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index 96b2c95ac356..ad4c414f456d 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c | |||
@@ -1372,11 +1372,13 @@ static void dequeue_task_fair(struct rq *rq, struct task_struct *p, int flags) | |||
1372 | 1372 | ||
1373 | #ifdef CONFIG_SMP | 1373 | #ifdef CONFIG_SMP |
1374 | 1374 | ||
1375 | static void task_waking_fair(struct rq *rq, struct task_struct *p) | 1375 | static void task_waking_fair(struct task_struct *p) |
1376 | { | 1376 | { |
1377 | struct sched_entity *se = &p->se; | 1377 | struct sched_entity *se = &p->se; |
1378 | struct cfs_rq *cfs_rq = cfs_rq_of(se); | 1378 | struct cfs_rq *cfs_rq = cfs_rq_of(se); |
1379 | 1379 | ||
1380 | lockdep_assert_held(&task_rq(p)->lock); | ||
1381 | |||
1380 | se->vruntime -= cfs_rq->min_vruntime; | 1382 | se->vruntime -= cfs_rq->min_vruntime; |
1381 | } | 1383 | } |
1382 | 1384 | ||