On 08/06/17 16:27, Thomas Petazzoni wrote: > smp_processor_id() should not be used in migration-enabled contexts. We > originally thought it was OK in the specific situation of this driver, > but it was wrong, and calling smp_processor_id() in a migration-enabled > context prints a big fat warning when CONFIG_DEBUG_PREEMPT=y. > > Therefore, this commit replaces the smp_processor_id() in > migration-enabled contexts by the appropriate get_cpu/put_cpu sections. > > Reported-by: Marc Zyngier <marc.zyng...@arm.com> > Fixes: a786841df72e ("net: mvpp2: handle register mapping and access for > PPv2.2") > Signed-off-by: Thomas Petazzoni <thomas.petazz...@free-electrons.com>
Tested-by: Marc Zyngier <marc.zyng...@arm.com> M. -- Jazz is not dead. It just smells funny...