aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorDmitry Torokhov <[email protected]>2018-08-17 15:44:17 -0700
committerLinus Torvalds <[email protected]>2018-08-17 16:20:27 -0700
commit82f7c5103dcdd714486a64cfc5783cc4608d124c (patch)
tree654a705b9389e0cf50dbe554e6e75e119fe92628 /tools/perf/scripts/python/mem-phys-addr.py
parentab62ef82ea49b8814f4b0e2fe61426acda793fb9 (diff)
sh: make use of for_each_node_by_type()
Instead of open-coding the loop, let's use canned macro. Also make sure we are not leaking "cpus" node reference. Link: http://lkml.kernel.org/r/20180624224252.GA220395@dtor-ws Signed-off-by: Dmitry Torokhov <[email protected]> Reviewed-by: Andrew Morton <[email protected]> Cc: Yoshinori Sato <[email protected]> Cc: Rich Felker <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions