summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm/book3s64/hash_utils.c
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2019-08-02 12:57:01 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2019-08-30 03:14:59 +0200
commit9b123d1ea23701bc00ebf712f1e03b25b8195eeb (patch)
tree1eb827c65b007de64f8aa9ffff05a698277ba02d /arch/powerpc/mm/book3s64/hash_utils.c
parentpowerpc/64s/exception: Remove pointless KVM handler name bifurcation (diff)
downloadlinux-9b123d1ea23701bc00ebf712f1e03b25b8195eeb.tar.xz
linux-9b123d1ea23701bc00ebf712f1e03b25b8195eeb.zip
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
Diffstat (limited to '')
-rw-r--r--arch/powerpc/mm/book3s64/hash_utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/mm/book3s64/hash_utils.c b/arch/powerpc/mm/book3s64/hash_utils.c
index 4d0bb194ed70..fe99bba39b69 100644
--- a/arch/powerpc/mm/book3s64/hash_utils.c
+++ b/arch/powerpc/mm/book3s64/hash_utils.c
@@ -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;