X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=lib%2Fsmp_processor_id.c;h=4689cb073da4ef00000fecd739583bf19f23f6f1;hb=8f0ddf91f2aeb09602373e400cf8b403e9017210;hp=3b4dc098181e47ae4d3a239aa4c27dcd6d9a7d47;hpb=5568b139f4d196273958ae2947a736fdf1ffeece;p=safe%2Fjmp%2Flinux-2.6 diff --git a/lib/smp_processor_id.c b/lib/smp_processor_id.c index 3b4dc09..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_t 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(): */ - this_mask = cpumask_of_cpu(this_cpu); - - if (cpus_equal(current->cpus_allowed, this_mask)) + if (cpumask_equal(¤t->cpus_allowed, cpumask_of(this_cpu))) goto out; /*