]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - lib/smp_processor_id.c
Merge tag 'sound-5.5-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
[linux.git] / lib / smp_processor_id.c
index 60ba93fc42ce3810b53e0698ed8de1924175371d..bd95716532889016c7d03a687e06c7ee162646e3 100644 (file)
@@ -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;
 
        /*