]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
sched/deadline: Skip in switched_to_dl() if task is current
authorKirill Tkhai <ktkhai@parallels.com>
Tue, 28 Jan 2014 07:26:14 +0000 (11:26 +0400)
committerIngo Molnar <mingo@kernel.org>
Sun, 9 Feb 2014 12:31:48 +0000 (13:31 +0100)
commit390f3258cb2d031f1c17aa32e771ebd336e89073
treed3661f84b3a895c455d7b14a48bd97505ceb5a80
parenteaa4e4fcf1b5c60e656d93242f7fe422173f25b2
sched/deadline: Skip in switched_to_dl() if task is current

When p is current and it's not of dl class, then there are no other
dl taks in the rq. If we had had pushable tasks in some other rq,
they would have been pushed earlier. So, skip "p == rq->curr" case.

Signed-off-by: Kirill Tkhai <ktkhai@parallels.com>
Acked-by: Juri Lelli <juri.lelli@gmail.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20140128072421.32315.25300.stgit@tkhai
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/deadline.c