aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorRaghavendra K T <[email protected]>2015-11-05 18:46:29 -0800
committerLinus Torvalds <[email protected]>2015-11-05 19:34:48 -0800
commitc118baf802562688d46e6002f2b5fe66b947da21 (patch)
treeb26eb116d2a617eb8791f2213d426a8ea764e978 /tools/perf/scripts/python/net_dropmonitor.py
parent145949a1387ba7a4fd0df15181e09345ec7b0492 (diff)
arch/powerpc/mm/numa.c: do not allocate bootmem memory for non existing nodes
With the setup_nr_nodes(), we have already initialized node_possible_map. So it is safe to use for_each_node here. There are many places in the kernel that use hardcoded 'for' loop with nr_node_ids, because all other architectures have numa nodes populated serially. That should be reason we had maintained the same for powerpc. But, since sparse numa node ids possible on powerpc, we unnecessarily allocate memory for non existent numa nodes. For e.g., on a system with 0,1,16,17 as numa nodes nr_node_ids=18 and we allocate memory for nodes 2-14. This patch we allocate memory for only existing numa nodes. The patch is boot tested on a 4 node tuleta, confirming with printks that it works as expected. Signed-off-by: Raghavendra K T <[email protected]> Cc: Vladimir Davydov <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Michael Ellerman <[email protected]> Cc: Anton Blanchard <[email protected]> Cc: Nishanth Aravamudan <[email protected]> Cc: Greg Kurz <[email protected]> Cc: Grant Likely <[email protected]> Cc: Nikunj A Dadhania <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions