sched: Move p->nr_cpus_allowed check to select_task_rq()
authorWanpeng Li <wanpeng.li@linux.intel.com>
Wed, 5 Nov 2014 01:14:37 +0000 (09:14 +0800)
committerIngo Molnar <mingo@kernel.org>
Sun, 16 Nov 2014 09:58:55 +0000 (10:58 +0100)
commit6c1d9410f007a26d13173cf17204cfd965f49b83
treeea09909badbde3bcdc9a0adf194cebb70e8dad2f
parenta1bd5373357d3edc4b97548747d583c3efa484b3
sched: Move p->nr_cpus_allowed check to select_task_rq()

Move the p->nr_cpus_allowed check into kernel/sched/core.c: select_task_rq().
This change will make fair.c, rt.c, and deadline.c all start with the
same logic.

Suggested-and-Acked-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Wanpeng Li <wanpeng.li@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: "pang.xunlei" <pang.xunlei@linaro.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/1415150077-59053-1-git-send-email-wanpeng.li@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c
kernel/sched/deadline.c
kernel/sched/fair.c
kernel/sched/rt.c