aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorJianyu Zhan <[email protected]>2014-06-04 16:10:38 -0700
committerLinus Torvalds <[email protected]>2014-06-04 16:54:11 -0700
commit4be89a34609659042ef0bf883ad76388fb5251bb (patch)
tree7a438185cb78e2c6d3aec1e64960e64188cb4afe /tools/perf/scripts/python/netdev-times.py
parentb7596fb43aa786fb3ee5015a73034fbb9e80feaa (diff)
mm/vmscan.c: use DIV_ROUND_UP for calculation of zone's balance_gap and correct comments.
Currently, we use (zone->managed_pages + KSWAPD_ZONE_BALANCE_GAP_RATIO-1) / KSWAPD_ZONE_BALANCE_GAP_RATIO to avoid a zero gap value. It's better to use DIV_ROUND_UP macro for neater code and clear meaning. Besides, the gap value is calculated against the per-zone "managed pages", not "present pages". This patch also corrects the comment and do some rephrasing. Signed-off-by: Jianyu Zhan <[email protected]> Acked-by: Rik van Riel <[email protected]> Acked-by: Rafael Aquini <[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