]> git.baikalelectronics.ru Git - 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)
commitaf2f7683b702caa25f66e1454f29c05c91b532a3
tree0ebadb7e7d100f4aebeb137ad04d09e96abbaff3
parente1e2815c1318c89bf971301cbf1c7445d8fea9e5
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