[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-801ccdbf018ca5dbd478756ece55cd6c7726ed5b@git.kernel.org>
Date: Mon, 29 Feb 2016 03:19:42 -0800
From: tip-bot for Peter Zijlstra <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: luca.abeni@...tn.it, torvalds@...ux-foundation.org,
tglx@...utronix.de, hpa@...or.com, efault@....de,
linux-kernel@...r.kernel.org, juri.lelli@....com, mingo@...nel.org,
peterz@...radead.org
Subject: [tip:sched/core] sched/deadline: Remove superfluous call to
switched_to_dl()
Commit-ID: 801ccdbf018ca5dbd478756ece55cd6c7726ed5b
Gitweb: http://git.kernel.org/tip/801ccdbf018ca5dbd478756ece55cd6c7726ed5b
Author: Peter Zijlstra <peterz@...radead.org>
AuthorDate: Thu, 25 Feb 2016 15:01:49 +0100
Committer: Ingo Molnar <mingo@...nel.org>
CommitDate: Mon, 29 Feb 2016 09:53:11 +0100
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 <luca.abeni@...tn.it>
Signed-off-by: Peter Zijlstra (Intel) <peterz@...radead.org>
Acked-by: Juri Lelli <juri.lelli@....com>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Mike Galbraith <efault@....de>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: Thomas Gleixner <tglx@...utronix.de>
Link: http://lkml.kernel.org/r/20160225140149.GK6357@twins.programming.kicks-ass.net
Signed-off-by: Ingo Molnar <mingo@...nel.org>
---
kernel/sched/deadline.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c
index 04a569c..15abf04 100644
--- a/kernel/sched/deadline.c
+++ b/kernel/sched/deadline.c
@@ -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 = {
Powered by blists - more mailing lists