diff options
| author | Baoquan He <[email protected]> | 2024-03-25 22:56:43 +0800 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-04-25 20:56:10 -0700 |
| commit | 8ad4184985e844ab5848dbf8b7b02f4e14b5d010 (patch) | |
| tree | 8849e33b69befc395f2a913760b4c75ab71ba702 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 6600a6b10c3210280e7623b8ba7feac9619cc2cd (diff) | |
mm/mm_init.c: add new function calc_nr_all_pages()
This is a preparation to calculate nr_kernel_pages and nr_all_pages, both
of which will be used later in alloc_large_system_hash().
nr_all_pages counts up all free but not reserved memory in memblock
allocator, including HIGHMEM memory. While nr_kernel_pages counts up all
free but not reserved low memory in memblock allocator, excluding HIGHMEM
memory.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Baoquan He <[email protected]>
Reviewed-by: Mike Rapoport (IBM) <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions