Skip to content

Commit 8fd3735

Browse files
Xunlei PangIngo Molnar
authored andcommitted
sched/rt: Remove a redundant condition from task_woken_rt()
'p' has been already queued at this point, so "!task_running(rq, p)" and "p->nr_cpus_allowed > 1" imply that "has_pushable_tasks(rq)" is true, so it can be removed. Signed-off-by: Xunlei Pang <pang.xunlei@linaro.org> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Steven Rostedt <rostedt@goodmis.org> Cc: Juri Lelli <juri.lelli@gmail.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/1435995563-3723-1-git-send-email-xlpang@126.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 985d3a4 commit 8fd3735

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

kernel/sched/rt.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2069,7 +2069,6 @@ static void task_woken_rt(struct rq *rq, struct task_struct *p)
20692069
{
20702070
if (!task_running(rq, p) &&
20712071
!test_tsk_need_resched(rq->curr) &&
2072-
has_pushable_tasks(rq) &&
20732072
p->nr_cpus_allowed > 1 &&
20742073
(dl_task(rq->curr) || rt_task(rq->curr)) &&
20752074
(rq->curr->nr_cpus_allowed < 2 ||

0 commit comments

Comments
 (0)