X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=lib%2Fsmp_processor_id.c;h=bd95716532889016c7d03a687e06c7ee162646e3;hb=e35d0165908ad2d2bdb76773ef77b551763eedbd;hp=60ba93fc42ce3810b53e0698ed8de1924175371d;hpb=15abf14202a2fe7e5c5fc0e815587f45de4fd500;p=linux.git diff --git a/lib/smp_processor_id.c b/lib/smp_processor_id.c index 60ba93fc42ce..bd9571653288 100644 --- a/lib/smp_processor_id.c +++ b/lib/smp_processor_id.c @@ -23,7 +23,7 @@ unsigned int check_preemption_disabled(const char *what1, const char *what2) * Kernel threads bound to a single CPU can safely use * smp_processor_id(): */ - if (cpumask_equal(current->cpus_ptr, cpumask_of(this_cpu))) + if (current->nr_cpus_allowed == 1) goto out; /*