ARM: pgtable: consolidate set_pte_ext(TOP_PTE,...) + tlb flush
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 2 Jul 2011 14:20:44 +0000 (15:20 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 26 Jan 2012 20:06:28 +0000 (20:06 +0000)
commit67ece1443174d852e71c42facb3e2d7dd338c88a
tree418359d432acfcb2ecc4c58c8afa5f73de4fa01e
parent6e78df176141f2cb673bed7fa47825e3c6a8719f
ARM: pgtable: consolidate set_pte_ext(TOP_PTE,...) + tlb flush

A number of places establish a PTE in our top page table and
immediately flush the TLB.  Rather than having this at every callsite,
provide an inline function for this purpose.

This changes some global tlb flushes to be local; each time we setup
one of these mappings, we always do it with preemption disabled which
would prevent us migrating to another CPU.

Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/copypage-v4mc.c
arch/arm/mm/copypage-v6.c
arch/arm/mm/copypage-xscale.c
arch/arm/mm/flush.c
arch/arm/mm/highmem.c
arch/arm/mm/mm.h