Check whether the TLB operations need broadcasting on SMP systems
authorCatalin Marinas <catalin.marinas@arm.com>
Sat, 30 May 2009 13:00:14 +0000 (14:00 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Sat, 30 May 2009 13:00:14 +0000 (14:00 +0100)
commitfaa7bc51c11d5bbe440ac04710fd7a3208782000
tree8aaa4e8e2fbb14b421988762fa90a3dbe6fa76e7
parentda055eb52ec067d51dc08c7e86baf92dd5c01599
Check whether the TLB operations need broadcasting on SMP systems

ARMv7 SMP hardware can handle the TLB maintenance operations
broadcasting in hardware so that the software can avoid the costly IPIs.
This patch adds the necessary checks (the MMFR3 CPUID register) to avoid
the broadcasting if already supported by the hardware.

(this patch is based on the work done by Tony Thompson @ ARM)

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm/include/asm/cputype.h
arch/arm/include/asm/tlbflush.h
arch/arm/kernel/smp.c
arch/arm/mm/proc-v7.S
arch/arm/mm/tlb-v7.S