aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorJiang Liu <[email protected]>2013-07-03 15:03:41 -0700
committerLinus Torvalds <[email protected]>2013-07-03 16:07:35 -0700
commit7ee3d4e8cd560500192d80ca84d7f15d6dee0807 (patch)
tree8c58a121edb9c528fb6497e04774dca8d121aa4f /tools/perf/scripts/python/netdev-times.py
parenta214a8c68bcdef2fb0803425f7fe36fe41030d3f (diff)
mm: introduce helper function mem_init_print_info() to simplify mem_init()
Introduce helper function mem_init_print_info() to simplify mem_init() across different architectures, which also unifies the format and information printed. Function mem_init_print_info() calculates memory statistics information without walking each page, so it should be a little faster on some architectures. Also introduce another helper get_num_physpages() to kill the global variable num_physpages. Signed-off-by: Jiang Liu <[email protected]> Cc: Mel Gorman <[email protected]> Cc: Michel Lespinasse <[email protected]> Cc: Rik van Riel <[email protected]> Cc: Minchan Kim <[email protected]> Cc: Marek Szyprowski <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions