diff options
author | Wang Chen <wangchen@cn.fujitsu.com> | 2009-03-02 00:55:26 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-03-02 06:02:53 -0500 |
commit | b67802ea8061393f7bd2d4db934646e76096027c (patch) | |
tree | f2caeed0a8c1f5564e12d63d8c50a89bd3cd6b27 /kernel/sched.c | |
parent | 72fd455ba54b5a02b9c74221b9ded8b1845b464a (diff) |
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 dfae1bf6d5b2..9fe8e17574af 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -4603,7 +4603,7 @@ static inline void schedule_debug(struct task_struct *prev) | |||
4603 | * Pick up the highest-prio task: | 4603 | * Pick up the highest-prio task: |
4604 | */ | 4604 | */ |
4605 | static inline struct task_struct * | 4605 | static inline struct task_struct * |
4606 | pick_next_task(struct rq *rq, struct task_struct *prev) | 4606 | pick_next_task(struct rq *rq) |
4607 | { | 4607 | { |
4608 | const struct sched_class *class; | 4608 | const struct sched_class *class; |
4609 | struct task_struct *p; | 4609 | struct task_struct *p; |
@@ -4678,7 +4678,7 @@ need_resched_nonpreemptible: | |||
4678 | idle_balance(cpu, rq); | 4678 | idle_balance(cpu, rq); |
4679 | 4679 | ||
4680 | prev->sched_class->put_prev_task(rq, prev); | 4680 | prev->sched_class->put_prev_task(rq, prev); |
4681 | next = pick_next_task(rq, prev); | 4681 | next = pick_next_task(rq); |
4682 | 4682 | ||
4683 | if (likely(prev != next)) { | 4683 | if (likely(prev != next)) { |
4684 | sched_info_switch(prev, next); | 4684 | sched_info_switch(prev, next); |
@@ -6514,7 +6514,7 @@ static void migrate_dead_tasks(unsigned int dead_cpu) | |||
6514 | if (!rq->nr_running) | 6514 | if (!rq->nr_running) |
6515 | break; | 6515 | break; |
6516 | update_rq_clock(rq); | 6516 | update_rq_clock(rq); |
6517 | next = pick_next_task(rq, rq->curr); | 6517 | next = pick_next_task(rq); |
6518 | if (!next) | 6518 | if (!next) |
6519 | break; | 6519 | break; |
6520 | next->sched_class->put_prev_task(rq, next); | 6520 | next->sched_class->put_prev_task(rq, next); |