summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWanpeng Li <wanpeng.li@linux.intel.com>2014-10-31 06:39:36 +0800
committerPeter Zijlstra <peterz@infradead.org>2014-11-04 15:54:14 +0100
commitfe5a718ec522bef7f475b42a16d1f1ddb37fde62 (patch)
treeb677ed25da7e51bc36787531aa99f1afa4de7664
parent6bb48bcce2103e4718013fcbae715af83198d0d9 (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(); Cc: Juri Lelli <juri.lelli@arm.com> Cc: Kirill Tkhai <ktkhai@parallels.com> Cc: Ingo Molnar <mingo@redhat.com> Signed-off-by: Wanpeng Li <wanpeng.li@linux.intel.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: http://lkml.kernel.org/r/1414708776-124078-6-git-send-email-wanpeng.li@linux.intel.com
-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)
__dl_clear_params(p);
-#ifdef CONFIG_SMP
/*
* Since this might be the only -deadline task on the rq,
* 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)
if (pull_dl_task(rq))
resched_curr(rq);
-#endif
}
/*