mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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>
This commit is contained in:
parent
72fd455ba5
commit
b67802ea80
1 changed files with 3 additions and 3 deletions
|
@ -4603,7 +4603,7 @@ static inline void schedule_debug(struct task_struct *prev)
|
||||||
* Pick up the highest-prio task:
|
* Pick up the highest-prio task:
|
||||||
*/
|
*/
|
||||||
static inline struct task_struct *
|
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;
|
const struct sched_class *class;
|
||||||
struct task_struct *p;
|
struct task_struct *p;
|
||||||
|
@ -4678,7 +4678,7 @@ need_resched_nonpreemptible:
|
||||||
idle_balance(cpu, rq);
|
idle_balance(cpu, rq);
|
||||||
|
|
||||||
prev->sched_class->put_prev_task(rq, prev);
|
prev->sched_class->put_prev_task(rq, prev);
|
||||||
next = pick_next_task(rq, prev);
|
next = pick_next_task(rq);
|
||||||
|
|
||||||
if (likely(prev != next)) {
|
if (likely(prev != next)) {
|
||||||
sched_info_switch(prev, next);
|
sched_info_switch(prev, next);
|
||||||
|
@ -6514,7 +6514,7 @@ static void migrate_dead_tasks(unsigned int dead_cpu)
|
||||||
if (!rq->nr_running)
|
if (!rq->nr_running)
|
||||||
break;
|
break;
|
||||||
update_rq_clock(rq);
|
update_rq_clock(rq);
|
||||||
next = pick_next_task(rq, rq->curr);
|
next = pick_next_task(rq);
|
||||||
if (!next)
|
if (!next)
|
||||||
break;
|
break;
|
||||||
next->sched_class->put_prev_task(rq, next);
|
next->sched_class->put_prev_task(rq, next);
|
||||||
|
|
Loading…
Reference in a new issue