X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=lib%2Fsmp_processor_id.c;h=4689cb073da4ef00000fecd739583bf19f23f6f1;hb=b5f54b07c06f6e438a4fee92c27423e880d8816b;hp=c4381d9516f658ff62c6a2fd767310c78d80b7bc;hpb=06f8d00e9eecb738c99b737ac38a585ea7583ad5;p=safe%2Fjmp%2Flinux-2.6 diff --git a/lib/smp_processor_id.c b/lib/smp_processor_id.c index c4381d9..4689cb0 100644 --- a/lib/smp_processor_id.c +++ b/lib/smp_processor_id.c @@ -11,7 +11,6 @@ notrace unsigned int debug_smp_processor_id(void) { unsigned long preempt_count = preempt_count(); int this_cpu = raw_smp_processor_id(); - cpumask_of_cpu_ptr_declare(this_mask); if (likely(preempt_count)) goto out; @@ -23,9 +22,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, this_cpu); - - if (cpus_equal(current->cpus_allowed, *this_mask)) + if (cpumask_equal(¤t->cpus_allowed, cpumask_of(this_cpu))) goto out; /*