aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorSerge Semin <fancer.lancer@gmail.com>2023-12-02 14:14:21 +0300
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2023-12-21 15:32:23 +0100
commit1c0150229f6a658687c245dfc4dcfa3fae69df49 (patch)
treeda5ee9f55dd51624ae6a21755f2cb9f0cfc3bb80 /tools/perf/scripts/python/export-to-postgresql.py
parente1a9ae45736989c972a8d1c151bc390678ae6205 (diff)
downloadlinux-1c0150229f6a658687c245dfc4dcfa3fae69df49.tar.gz
linux-1c0150229f6a658687c245dfc4dcfa3fae69df49.tar.bz2
linux-1c0150229f6a658687c245dfc4dcfa3fae69df49.zip
mips: Optimize max_mapnr init procedure
max_mapnr defines the upper boundary of the pages space in the system. Currently in case if HIGHMEM is available it's calculated based on the upper high memory PFN limit value. Seeing there is a case when it isn't fully correct let's optimize out the max_mapnr variable initialization procedure to cover all the handled in the paging_init() method cases: 1. If CPU has DC-aliases, then high memory is unavailable so the PFNs upper boundary is determined by max_low_pfn. 2. Otherwise if high memory is available, use highend_pfn value representing the upper high memory PFNs limit. 3. Otherwise no high memory is available so set max_mapnr with the low-memory upper limit. Signed-off-by: Serge Semin <fancer.lancer@gmail.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions