aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorYury Norov <[email protected]>2023-08-19 07:12:33 -0700
committerIngo Molnar <[email protected]>2023-09-15 13:48:09 +0200
commitb1f099b1cf51d553c510c6c8141c27d9ba7ea1fe (patch)
treee126ab3ac7fd278ee7fb1dbd353f91d09f7d7950 /tools/perf/scripts/python
parent4de7b17fd05d03fa919e8c47fc66122bd24d7b6c (diff)
numa: Generalize numa_map_to_online_node()
The function in fact searches the nearest node for a given one, based on a N_ONLINE state. This is a common pattern to search for a nearest node. This patch converts numa_map_to_online_node() to numa_nearest_node() so that others won't need to opencode the logic. Signed-off-by: Yury Norov <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Cc: Mel Gorman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions