Re: [PATCH] sched/deadline: Remove unnecessary condition in push_dl_task()
From: Steven Rostedt
Date: Wed Feb 15 2017 - 09:55:56 EST
On Wed, 15 Feb 2017 14:45:03 +0000
Juri Lelli <juri.lelli@xxxxxxx> wrote:
> >
> > task = pick_next_pushable_dl_task(rq);
> >
> > Which has:
> >
> > BUG_ON(rq->cpu != task_cpu(task))
> >
> > when it returns a task other than NULL. Which means that task_cpu(task)
> > must be rq->cpu. Then if task == next_task, then task_cpu(next_task)
> > must be rq->cpu as well.
>
> Right.
Perhaps my comment should also be added in the change log.
-- Steve