aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/arm-cs-trace-disasm.py
diff options
context:
space:
mode:
authorBaolin Wang <[email protected]>2021-09-08 15:18:01 -0700
committerLinus Torvalds <[email protected]>2021-09-08 15:32:34 -0700
commit2b9b624f5aef6af608edf541fed973948e27004c (patch)
tree3fc74f497d41fbd6be1d776200d3432d07fc4a8b /tools/perf/scripts/python/arm-cs-trace-disasm.py
parentc68ed7945701a38f2121ed74e23ff19c2052b4c2 (diff)
mm: migrate: introduce a local variable to get the number of pages
Use thp_nr_pages() instead of compound_nr() to get the number of pages for THP page, meanwhile introducing a local variable 'nr_pages' to avoid getting the number of pages repeatedly. Link: https://lkml.kernel.org/r/a8e331ac04392ee230c79186330fb05e86a2aa77.1629447552.git.baolin.wang@linux.alibaba.com Signed-off-by: Baolin Wang <[email protected]> Reviewed-by: Yang Shi <[email protected]> Cc: Alistair Popple <[email protected]> Cc: Matthew Wilcox <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions