diff options
author | Mike Rapoport <[email protected]> | 2020-01-12 13:36:15 +0200 |
---|---|---|
committer | Helge Deller <[email protected]> | 2020-01-27 09:43:15 +0100 |
commit | 8121fbc4ebbbb2ad29f4393ebfaaa588905dc693 (patch) | |
tree | 92ada40c8dee6117c43a169908c1461cdf1f7ff2 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | d5226fa6dbae0569ee43ecfc08bdcd6770fc4755 (diff) |
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 <[email protected]>
Signed-off-by: Helge Deller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions