aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
diff options
context:
space:
mode:
authorMark Rutland <[email protected]>2016-06-22 12:13:45 +0100
committerCatalin Marinas <[email protected]>2016-06-27 18:05:39 +0100
commitea2cbee3bc671390139802dd0d50b08db024b03c (patch)
tree76e1edadbfa8ffea3cca536777bd047bbe15bd6c /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
parent221f2c770e10d3f8dca71e1e14e24e61dc8988dd (diff)
arm64: mm: simplify memblock numa node extraction
We currently open-code extracting the NUMA node of a memblock region, which requires an ifdef to cater for !CONFIG_NUMA builds where the memblock_region::nid field does not exist. The generic memblock_get_region_node helper is intended to cater for this. For CONFIG_HAVE_MEMBLOCK_NODE_MAP, builds this returns reg->nid, and for for !CONFIG_HAVE_MEMBLOCK_NODE_MAP builds this is a static inline that returns 0. Note that for arm64, CONFIG_HAVE_MEMBLOCK_NODE_MAP is selected iff CONFIG_NUMA is. This patch makes use of memblock_get_region_node to simplify the arm64 code. At the same time, we can move the nid variable definition into the loop, as this is the only place it is used. Signed-off-by: Mark Rutland <[email protected]> Reviewed-by: Steve Capper <[email protected]> Acked-by: Will Deacon <[email protected]> Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions