diff options
| author | Haifeng Xu <[email protected]> | 2023-05-26 08:52:50 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-06-09 16:25:48 -0700 |
| commit | ba1b67c79cb3c5f5d11cb475bb7045929b235538 (patch) | |
| tree | 602444784b379d874641955e3d5fe48280907535 /tools/perf/scripts/python | |
| parent | da9698105c7a84f601e81ea1f5f39ba53f6b9d7c (diff) | |
mm/mm_init.c: introduce reset_memoryless_node_totalpages()
Currently, no matter whether a node actually has memory or not,
calculate_node_totalpages() is used to account number of pages in
zone/node. However, for node without memory, these unnecessary
calculations can be skipped. All the zone/node page counts can be set to
0 directly. So introduce reset_memoryless_node_totalpages() to perform
this action.
Furthermore, calculate_node_totalpages() only gets called for the node
with memory.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Haifeng Xu <[email protected]>
Suggested-by: Mike Rapoport <[email protected]>
Reviewed-by: Mike Rapoport (IBM) <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: Michal Hocko <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions