Skip to content

Commit 801ccdb

Browse files
Peter ZijlstraIngo Molnar
authored andcommitted
sched/deadline: Remove superfluous call to switched_to_dl()
if (A || B) { } else if (A && !B) { } If A we'll take the first branch, if !A we will not satisfy the second. Therefore the second branch will never be taken. Reported-by: luca abeni <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Acked-by: Juri Lelli <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
1 parent f904f58 commit 801ccdb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

kernel/sched/deadline.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1772,8 +1772,7 @@ static void prio_changed_dl(struct rq *rq, struct task_struct *p,
17721772
*/
17731773
resched_curr(rq);
17741774
#endif /* CONFIG_SMP */
1775-
} else
1776-
switched_to_dl(rq, p);
1775+
}
17771776
}
17781777

17791778
const struct sched_class dl_sched_class = {

0 commit comments

Comments
 (0)