]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
powerpc/mm: Pre-filter SRR1 bits before do_page_fault()
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 19 Jul 2017 04:49:24 +0000 (14:49 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 2 Aug 2017 03:11:07 +0000 (13:11 +1000)
commitc433ec0455f921eaf8dd0262a718ce6f8ad62ea2
tree0ebadb7e7d100f4aebeb137ad04d09e96abbaff3
parent7afad422ac61067473d5f3d20bbd5472af533bcd
powerpc/mm: Pre-filter SRR1 bits before do_page_fault()

By filtering the relevant SRR1 bits in the assembly rather than
in do_page_fault() itself, we avoid a conditional branch (since we
already come from different path for data and instruction faults).

This will allow more simplifications later

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/head_32.S
arch/powerpc/kernel/head_8xx.S
arch/powerpc/mm/fault.c