powerpc/64s/exception: reduce page fault unnecessary loads
This avoids 3 loads in the radix page fault case, 1 load in the hash fault case, and 2 loads in the hash miss page fault case. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20190802105709.27696-37-npiggin@gmail.com
This commit is contained in:
committed by
Michael Ellerman
parent
05f97d94dd
commit
9b123d1ea2
@ -1462,8 +1462,8 @@ int hash_page(unsigned long ea, unsigned long access, unsigned long trap,
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(hash_page);
|
||||
|
||||
int __hash_page(unsigned long ea, unsigned long msr, unsigned long trap,
|
||||
unsigned long dsisr)
|
||||
int __hash_page(unsigned long trap, unsigned long ea, unsigned long dsisr,
|
||||
unsigned long msr)
|
||||
{
|
||||
unsigned long access = _PAGE_PRESENT | _PAGE_READ;
|
||||
unsigned long flags = 0;
|
||||
|
Reference in New Issue
Block a user