ARM: 7660/1: tlb: add branch predictor maintenance operations
authorWill Deacon <will.deacon@arm.com>
Thu, 28 Feb 2013 16:48:11 +0000 (17:48 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 3 Mar 2013 22:54:15 +0000 (22:54 +0000)
commit862c588f062fe9339a180cf6429e4df1855c376a
tree20348a057421b00913563d103c1cd430d1a7bb6f
parent8a4e3a9ead7e37ce1505602b564c15da09ac039f
ARM: 7660/1: tlb: add branch predictor maintenance operations

The ARM architecture requires explicit branch predictor maintenance
when updating an instruction stream for a given virtual address. In
reality, this isn't so much of a burden because the branch predictor
is flushed during the cache maintenance required to make the new
instructions visible to the I-side of the processor.

However, there are still some cases where explicit flushing is required,
so add a local_bp_flush_all operation to deal with this.

Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/tlbflush.h
arch/arm/kernel/smp_tlb.c