From: Ingo Molnar Date: Fri, 18 Jul 2008 20:34:00 +0000 (+0200) Subject: cpumask: Optimize cpumask_of_cpu in lib/smp_processor_id.c, fix X-Git-Tag: v2.6.27-rc1~848^2~9 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06f8d00e9eecb738c99b737ac38a585ea7583ad5;p=linux-2.6 cpumask: Optimize cpumask_of_cpu in lib/smp_processor_id.c, fix fix typo. Signed-off-by: Ingo Molnar --- diff --git a/lib/smp_processor_id.c b/lib/smp_processor_id.c index 9fb2df0d8d..c4381d9516 100644 --- a/lib/smp_processor_id.c +++ b/lib/smp_processor_id.c @@ -23,7 +23,7 @@ notrace unsigned int debug_smp_processor_id(void) * Kernel threads bound to a single CPU can safely use * smp_processor_id(): */ - cpumask_of_cpu_ptr_next(this_mask, cpu); + cpumask_of_cpu_ptr_next(this_mask, this_cpu); if (cpus_equal(current->cpus_allowed, *this_mask)) goto out;