Messages in this thread Patch in this message | | | From | Xunlei Pang <> | Subject | [PATCH] sched/deadline: No need to check NULL later_mask | Date | Fri, 1 Apr 2016 19:13:18 +0800 |
| |
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 <xlpang@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
| |