sched: Wrap scheduler p->cpus_allowed access
authorPeter Zijlstra <peterz@infradead.org>
Thu, 16 Jun 2011 10:23:22 +0000 (12:23 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 6 Oct 2011 10:46:56 +0000 (12:46 +0200)
commitfa17b507f142d37aeac322a95f6f7c6375f25601
tree5ff8b9d7087175aca85dff3393932fe9b5497425
parent6eb57e0d65ebd99a71d435dc96d83e725752eef8
sched: Wrap scheduler p->cpus_allowed access

This task is preparatory for the migrate_disable() implementation, but
stands on its own and provides a cleanup.

It currently only converts those sites required for task-placement.
Kosaki-san once mentioned replacing cpus_allowed with a proper
cpumask_t instead of the NR_CPUS sized array it currently is, that
would also require something like this.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Link: http://lkml.kernel.org/n/tip-e42skvaddos99psip0vce41o@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c
kernel/sched_fair.c
kernel/sched_rt.c
lib/smp_processor_id.c