linux-sg2042/arch/parisc/mm
Mike Rapoport 8121fbc4eb parisc: map_pages(): cleanup page table initialization
The current code uses '#if PTRS_PER_PMD == 1' to distinguish 2 vs 3 levels,
setup, it casts pgd to pgd to cope with page table folding and converts
addresses of page table entries from physical to virtual and back for no
good reason.

Simplify the accesses to the page table entries using proper unfolding of
the upper layers and replacing '#if PTRS_PER_PMD' with explicit
'#if CONFIG_PGTABLE_LEVELS == 3'

Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Helge Deller <deller@gmx.de>
2020-01-27 09:43:15 +01:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
fault.c parisc: Mark expected switch fall-throughs in fault.c 2019-07-31 16:16:00 +02:00
fixmap.c parisc: use pgtable-nopXd instead of 4level-fixup 2019-12-04 19:44:15 -08:00
hugetlbpage.c parisc/hugetlb: use pgtable-nopXd instead of 4level-fixup 2019-12-04 19:44:15 -08:00
init.c parisc: map_pages(): cleanup page table initialization 2020-01-27 09:43:15 +01:00
ioremap.c parisc: remove __ioremap 2019-11-11 17:19:49 +01:00