sched/dl: Simplify pick_dl_task()
authorKirill Tkhai <ktkhai@parallels.com>
Fri, 12 Sep 2014 13:42:20 +0000 (17:42 +0400)
committerIngo Molnar <mingo@kernel.org>
Fri, 19 Sep 2014 10:35:20 +0000 (12:35 +0200)
commit1ba93d42727c44001aa8ccffd39c8ab5705379e2
treec324239cfaaadf4bd5511d6bedf3711f6311ae75
parentf3f1768f89d601ad29f4701deef91caaa82b9f57
sched/dl: Simplify pick_dl_task()

1) Nobody calls pick_dl_task() with negative cpu, it's old RT leftover.

2) If p->nr_cpus_allowed is 1, than the affinity has just been changed
  in set_cpus_allowed_ptr(); we'll pick it just earlier than migration
  thread.

Signed-off-by: Kirill Tkhai <ktkhai@parallels.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1410529340.3569.27.camel@tkhai
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/deadline.c