Messages in this thread Patch in this message | | | Date | Wed, 07 Jan 2009 11:58:37 -0800 | From | Mike Travis <> | Subject | [PATCH 5/5] cpumask: convert other misc kernel functions |
| |
From: Rusty Russell <rusty@rustcorp.com.au>
Impact: use new cpumask API.
Convert other misc kernel functions to use struct cpumask.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Mike Travis <travis@sgi.com> --- lib/smp_processor_id.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-2.6.28.orig/lib/smp_processor_id.c +++ linux-2.6.28/lib/smp_processor_id.c @@ -22,7 +22,7 @@ notrace unsigned int debug_smp_processor * Kernel threads bound to a single CPU can safely use * smp_processor_id(): */ - if (cpus_equal(current->cpus_allowed, cpumask_of_cpu(this_cpu))) + if (cpumask_equal(¤t->cpus_allowed, cpumask_of(this_cpu))) goto out; /* --
| |