diff options
author | Wang Chen <wangchen@cn.fujitsu.com> | 2009-03-02 13:55:26 +0800 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-03-02 12:02:53 +0100 |
commit | b67802ea8061393f7bd2d4db934646e76096027c (patch) | |
tree | f2caeed0a8c1f5564e12d63d8c50a89bd3cd6b27 /kernel/sched.c | |
parent | 72fd455ba54b5a02b9c74221b9ded8b1845b464a (diff) | |
download | op-kernel-dev-b67802ea8061393f7bd2d4db934646e76096027c.zip op-kernel-dev-b67802ea8061393f7bd2d4db934646e76096027c.tar.gz |
sched: kill unused parameter of pick_next_task()
Impact: micro-optimization
Parameter "prev" is not used really.
Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index dfae1bf..9fe8e17 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -4603,7 +4603,7 @@ static inline void schedule_debug(struct task_struct *prev) * Pick up the highest-prio task: */ static inline struct task_struct * -pick_next_task(struct rq *rq, struct task_struct *prev) +pick_next_task(struct rq *rq) { const struct sched_class *class; struct task_struct *p; @@ -4678,7 +4678,7 @@ need_resched_nonpreemptible: idle_balance(cpu, rq); prev->sched_class->put_prev_task(rq, prev); - next = pick_next_task(rq, prev); + next = pick_next_task(rq); if (likely(prev != next)) { sched_info_switch(prev, next); @@ -6514,7 +6514,7 @@ static void migrate_dead_tasks(unsigned int dead_cpu) if (!rq->nr_running) break; update_rq_clock(rq); - next = pick_next_task(rq, rq->curr); + next = pick_next_task(rq); if (!next) break; next->sched_class->put_prev_task(rq, next); |