Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1369227

[PATCH] sched/deadline: No need to check NULL later_mask

From Xunlei Pang <xlpang@redhat.com>
Newsgroups linux.kernel
Subject [PATCH] sched/deadline: No need to check NULL later_mask
Date 2016-04-01 13:20 +0200
Message-ID <rj5ho-3uY-11@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH] sched/deadline: No need to check NULL later_mask Xunlei Pang <xlpang@redhat.com> - 2016-04-01 13:20 +0200
  Re: [PATCH] sched/deadline: No need to check NULL later_mask Peter Zijlstra <peterz@infradead.org> - 2016-04-01 13:30 +0200
    Re: [PATCH] sched/deadline: No need to check NULL later_mask Xunlei Pang <xpang@redhat.com> - 2016-04-01 14:20 +0200
      Re: [PATCH] sched/deadline: No need to check NULL later_mask Peter Zijlstra <peterz@infradead.org> - 2016-04-01 18:30 +0200
        Re: [PATCH] sched/deadline: No need to check NULL later_mask Xunlei Pang <xpang@redhat.com> - 2016-04-02 12:20 +0200

csiph-web