sched/deadline: Remove superfluous call to switched_to_dl()
authorPeter Zijlstra <peterz@infradead.org>
Thu, 25 Feb 2016 14:01:49 +0000 (15:01 +0100)
committerIngo Molnar <mingo@kernel.org>
Mon, 29 Feb 2016 08:53:11 +0000 (09:53 +0100)
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 <luca.abeni@unitn.it>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Juri Lelli <juri.lelli@arm.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/20160225140149.GK6357@twins.programming.kicks-ass.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/deadline.c

index 04a569cdd613df57a9bd84d86ce674f08068bde2..15abf04bf0b8903bdab6da5fa40eb7e0bd0dd094 100644 (file)
@@ -1772,8 +1772,7 @@ static void prio_changed_dl(struct rq *rq, struct task_struct *p,
                 */
                resched_curr(rq);
 #endif /* CONFIG_SMP */
-       } else
-               switched_to_dl(rq, p);
+       }
 }
 
 const struct sched_class dl_sched_class = {
This page took 0.027107 seconds and 5 git commands to generate.