powerpc/book3e-64: use a separate TLB handler when linear map is bolted
authorScott Wood <scottwood@freescale.com>
Wed, 22 Jun 2011 11:25:42 +0000 (11:25 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 29 Jun 2011 07:47:48 +0000 (17:47 +1000)
commitf67f4ef5fcdfdeeddcb0ed4ab2c85d9bb4185d5f
tree2a2dd8b027cc596dae37dd1b0a3710bca4791ef1
parent3d97a619acbb2c8a7a9a7da08c2d3041dfdd241f
powerpc/book3e-64: use a separate TLB handler when linear map is bolted

On MMUs such as FSL where we can guarantee the entire linear mapping is
bolted, we don't need to worry about linear TLB misses.  If on top of
that we do a full table walk, we get rid of all recursive TLB faults, and
can dispense with some state saving.  This gains a few percent on
TLB-miss-heavy workloads, and around 50% on a benchmark that had a high
rate of virtual page table faults under the normal handler.

While touching the EX_TLB layout, remove EX_TLB_MMUCR0, EX_TLB_SRR0, and
EX_TLB_SRR1 as they're not used.

[BenH: Fixed build with 64K pages (wsp config)]

Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/exception-64e.h
arch/powerpc/include/asm/paca.h
arch/powerpc/mm/tlb_low_64e.S
arch/powerpc/mm/tlb_nohash.c