diff options
author | Mike Rapoport <rppt@linux.ibm.com> | 2020-06-15 12:22:29 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-06-17 23:04:13 +1000 |
commit | 687993ccf3b05070598b89fad97410b26d7bc9d2 (patch) | |
tree | bfb4ccf212cb6ad4ff6a6e0ecff7b13942da9b49 /arch/sparc/kernel | |
parent | 0bdcfa182506526fbe4e088ff9ca86a31b81828d (diff) | |
download | linux-687993ccf3b05070598b89fad97410b26d7bc9d2.tar.bz2 |
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 'arch/sparc/kernel')
0 files changed, 0 insertions, 0 deletions