path: root/lib/smp_processor_id.c
diff options
authorPeter Zijlstra <>2011-06-16 12:23:22 +0200
committerIngo Molnar <>2011-10-06 12:46:56 +0200
commitfa17b507f142d37aeac322a95f6f7c6375f25601 (patch)
tree5ff8b9d7087175aca85dff3393932fe9b5497425 /lib/smp_processor_id.c
parent6eb57e0d65ebd99a71d435dc96d83e725752eef8 (diff)
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 <> Acked-by: Thomas Gleixner <> Cc: KOSAKI Motohiro <> Link: Signed-off-by: Ingo Molnar <>
Diffstat (limited to 'lib/smp_processor_id.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/smp_processor_id.c b/lib/smp_processor_id.c
index 4689cb073da4..503f087382a4 100644
--- a/lib/smp_processor_id.c
+++ b/lib/smp_processor_id.c
@@ -22,7 +22,7 @@ notrace unsigned int debug_smp_processor_id(void)
* Kernel threads bound to a single CPU can safely use
* smp_processor_id():
- if (cpumask_equal(&current->cpus_allowed, cpumask_of(this_cpu)))
+ if (cpumask_equal(tsk_cpus_allowed(current), cpumask_of(this_cpu)))
goto out;