diff options
| author | Yury Norov <yury.norov@gmail.com> | 2023-08-19 07:12:33 -0700 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2023-09-15 13:48:09 +0200 |
| commit | b1f099b1cf51d553c510c6c8141c27d9ba7ea1fe (patch) | |
| tree | e126ab3ac7fd278ee7fb1dbd353f91d09f7d7950 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | sched: Assert for_each_thread() is properly locked (diff) | |
| download | linux-b1f099b1cf51d553c510c6c8141c27d9ba7ea1fe.tar.gz linux-b1f099b1cf51d553c510c6c8141c27d9ba7ea1fe.zip | |
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 <yury.norov@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Mel Gorman <mgorman@suse.de>
Link: https://lore.kernel.org/r/20230819141239.287290-2-yury.norov@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
