aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched/deadline.c
diff options
context:
space:
mode:
authorWanpeng Li <wanpeng.li@linux.intel.com>2014-10-30 18:39:36 -0400
committerIngo Molnar <mingo@kernel.org>2014-11-04 01:17:56 -0500
commitcad3bb32e181c286c46ec12b2deb1f26a6f9835d (patch)
treeb677ed25da7e51bc36787531aa99f1afa4de7664 /kernel/sched/deadline.c
parentcd66091162d34f589631a23bbe0ed214798245b4 (diff)
sched/deadline: Don't check CONFIG_SMP in switched_from_dl()
There are both UP and SMP version of pull_dl_task(), so don't need to check CONFIG_SMP in switched_from_dl(); Signed-off-by: Wanpeng Li <wanpeng.li@linux.intel.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Juri Lelli <juri.lelli@arm.com> Cc: Kirill Tkhai <ktkhai@parallels.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Link: http://lkml.kernel.org/r/1414708776-124078-6-git-send-email-wanpeng.li@linux.intel.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched/deadline.c')
-rw-r--r--kernel/sched/deadline.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c
index 362ab1f886b0..f3d7776656ee 100644
--- a/kernel/sched/deadline.c
+++ b/kernel/sched/deadline.c
@@ -1637,7 +1637,6 @@ static void switched_from_dl(struct rq *rq, struct task_struct *p)
1637 1637
1638 __dl_clear_params(p); 1638 __dl_clear_params(p);
1639 1639
1640#ifdef CONFIG_SMP
1641 /* 1640 /*
1642 * Since this might be the only -deadline task on the rq, 1641 * Since this might be the only -deadline task on the rq,
1643 * this is the right place to try to pull some other one 1642 * this is the right place to try to pull some other one
@@ -1648,7 +1647,6 @@ static void switched_from_dl(struct rq *rq, struct task_struct *p)
1648 1647
1649 if (pull_dl_task(rq)) 1648 if (pull_dl_task(rq))
1650 resched_curr(rq); 1649 resched_curr(rq);
1651#endif
1652} 1650}
1653 1651
1654/* 1652/*