ARM: 7703/1: Disable preemption in broadcast_tlb*_a15_erratum()
authorCatalin Marinas <catalin.marinas@arm.com>
Wed, 24 Apr 2013 13:41:37 +0000 (14:41 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 25 Apr 2013 12:15:15 +0000 (13:15 +0100)
commit3eb0be304273054fd2ae34367f96127d082e310c
tree27ba3f69ba99409c8bcbb40af5d670cef3082103
parent60d509fa6a9c4653a86ad830e4c4b30360b23f0e
ARM: 7703/1: Disable preemption in broadcast_tlb*_a15_erratum()

Commit 93dc688 (ARM: 7684/1: errata: Workaround for Cortex-A15 erratum
798181 (TLBI/DSB operations)) introduces calls to smp_processor_id() and
smp_call_function_many() with preemption enabled. This patch disables
preemption and also optimises the smp_processor_id() call in
broadcast_tlb_mm_a15_erratum(). The broadcast_tlb_a15_erratum() function
is changed to use smp_call_function() which disables preemption.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Reported-by: Geoff Levand <geoff@infradead.org>
Reported-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/smp_tlb.c