diff options
author | Mike Rapoport <rppt@linux.ibm.com> | 2020-06-15 11:22:29 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-06-17 15:04:13 +0200 |
commit | 687993ccf3b05070598b89fad97410b26d7bc9d2 (patch) | |
tree | bfb4ccf212cb6ad4ff6a6e0ecff7b13942da9b49 /crypto/ecrdsa_defs.h | |
parent | powerpc/64s: Fix KVM interrupt using wrong save area (diff) | |
download | linux-687993ccf3b05070598b89fad97410b26d7bc9d2.tar.xz linux-687993ccf3b05070598b89fad97410b26d7bc9d2.zip |
powerpc/8xx: use pmd_off() to access a PMD entry in pte_update()
The pte_update() implementation for PPC_8xx unfolds page table from the PGD
level to access a PMD entry. Since 8xx has only 2-level page table this can
be simplified with pmd_off() shortcut.
Replace explicit unfolding with pmd_off() and drop defines of pgd_index()
and pgd_offset() that are no longer needed.
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Reviewed-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200615092229.23142-1-rppt@kernel.org
Diffstat (limited to 'crypto/ecrdsa_defs.h')
0 files changed, 0 insertions, 0 deletions