bus: arm-cci: Fix use of smp_processor_id() in preemptible context
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 3 Oct 2017 17:14:13 +0000 (18:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Dec 2017 08:53:02 +0000 (09:53 +0100)
commit2ced9e2a850c40d3bfd7af4791f985318facff68
treed85bc5c7351b2b442ef2fd750599240eabf28ed6
parent1d6c92408159ccfdc60cd988fe229804447f9c7e
bus: arm-cci: Fix use of smp_processor_id() in preemptible context

commit 4608af8aa53e7f3922ddee695d023b7bcd5cb35b upstream.

The ARM CCI driver seem to be using smp_processor_id() in a
preemptible context, which is likely to make a DEBUG_PREMPT
kernel scream at boot time.

Turn this into a get_cpu()/put_cpu() that extends over the CPU
hotplug registration, making sure that we don't race against
a CPU down operation.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/bus/arm-cci.c