diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2011-04-05 15:23:46 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-04-14 06:52:36 (GMT) |
commit | 7608dec2ce2004c234339bef8c8074e5e601d0e9 (patch) | |
tree | a855754a4fa3de6fe0d287c9d94d58d7bd6e8978 /kernel/sched_stoptask.c | |
parent | 013fdb8086acaae5f8eb96f9ad48fcd98882ac46 (diff) | |
download | linux-7608dec2ce2004c234339bef8c8074e5e601d0e9.tar.xz |
sched: Drop the rq argument to sched_class::select_task_rq()
In preparation of calling select_task_rq() without rq->lock held, drop
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.031077745@chello.nl
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched_stoptask.c')
-rw-r--r-- | kernel/sched_stoptask.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/sched_stoptask.c b/kernel/sched_stoptask.c index f607de4..6f43763 100644 --- a/kernel/sched_stoptask.c +++ b/kernel/sched_stoptask.c @@ -9,8 +9,7 @@ #ifdef CONFIG_SMP static int -select_task_rq_stop(struct rq *rq, struct task_struct *p, - int sd_flag, int flags) +select_task_rq_stop(struct task_struct *p, int sd_flag, int flags) { return task_cpu(p); /* stop tasks as never migrate */ } |