]> Pileus Git - ~andy/linux/commit
ARM: tlb: don't bother with barriers for branch predictor maintenance
authorWill Deacon <will.deacon@arm.com>
Thu, 23 May 2013 17:29:18 +0000 (18:29 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 12 Aug 2013 11:25:44 +0000 (12:25 +0100)
commit587b9b6487acddf777301c867c24f31fdf4ada4a
tree2679cd18aab608967178492a3958f9eddcbc2750
parentf0915781bd5edf78b1154e61efe962dc15872d09
ARM: tlb: don't bother with barriers for branch predictor maintenance

Branch predictor maintenance is only required when we are either
changing the kernel's view of memory (switching tables completely) or
dealing with ASID rollover.

Both of these use-cases require subsequent TLB invalidation, which has
the relevant barrier instructions to ensure completion and visibility
of the maintenance, so this patch removes the instruction barrier from
[local_]flush_bp_all.

Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/include/asm/tlbflush.h