From: Kirill Tkhai Date: Fri, 12 Sep 2014 13:42:20 +0000 (+0400) Subject: sched/dl: Simplify pick_dl_task() X-Git-Tag: fixes-against-v3.18-rc2~97^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ba93d42727c44001aa8ccffd39c8ab5705379e2;p=pandora-kernel.git 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 Signed-off-by: Peter Zijlstra (Intel) Link: http://lkml.kernel.org/r/1410529340.3569.27.camel@tkhai Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed