aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched_fair.c
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2011-04-05 11:23:47 -0400
committerIngo Molnar <mingo@elte.hu>2011-04-14 02:52:36 -0400
commit74f8e4b2335de45485b8d5b31a504747f13c8070 (patch)
treef8f8ba3e346239c44177d09620e65b18870d911f /kernel/sched_fair.c
parent7608dec2ce2004c234339bef8c8074e5e601d0e9 (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.c4
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
1375static void task_waking_fair(struct rq *rq, struct task_struct *p) 1375static 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