diff --git a/lib/smp_processor_id.c b/lib/smp_processor_id.c index 60ba93fc42ce3810b53e0698ed8de1924175371d..bd95716532889016c7d03a687e06c7ee162646e3 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; /*