sched/deadline: Don't check CONFIG_SMP in switched_from_dl()
authorWanpeng Li <[email protected]>
Thu, 30 Oct 2014 22:39:36 +0000 (06:39 +0800)
committerIngo Molnar <[email protected]>
Tue, 4 Nov 2014 06:17:56 +0000 (07:17 +0100)
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 <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Juri Lelli <[email protected]>
Cc: Kirill Tkhai <[email protected]>
Cc: Linus Torvalds <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
kernel/sched/deadline.c

index 362ab1f886b079df1975225a74837ac843239239..f3d7776656ee302ac56e0ccb6908be1a277787e6 100644 (file)
@@ -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
 }
 
 /*