Unlike rt tasks, we (should) have no deadline tasks in
booting phase before the mask is allocated, so we can
safely remove the check.

Signed-off-by: Xunlei Pang <xlp...@redhat.com>
---
 kernel/sched/deadline.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c
index fb98160..7b8aa93 100644
--- a/kernel/sched/deadline.c
+++ b/kernel/sched/deadline.c
@@ -1295,10 +1295,6 @@ static int find_later_rq(struct task_struct *task)
        int this_cpu = smp_processor_id();
        int best_cpu, cpu = task_cpu(task);
 
-       /* Make sure the mask is initialized first */
-       if (unlikely(!later_mask))
-               return -1;
-
        if (task->nr_cpus_allowed == 1)
                return -1;
 
-- 
1.8.3.1

Reply via email to