Message ID | 20171005163933.GJ647@jcartwri.amer.corp.natinst.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
diff --git a/lib/smp_processor_id.c b/lib/smp_processor_id.c index de3b2d925473..c8091d9eb1b4 100644 --- a/lib/smp_processor_id.c +++ b/lib/smp_processor_id.c @@ -20,7 +20,11 @@ notrace static unsigned int check_preemption_disabled(const char *what1, /* * Kernel threads bound to a single CPU can safely use - * smp_processor_id(): + * smp_processor_id(). + * + * In addition, threads which are currently executing within + * a migration disabled region can safely use smp_processor_id() and + * this_cpu accessors. */ if (cpumask_equal(current->cpus_ptr, cpumask_of(this_cpu))) goto out;