aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorKaixu Xia <[email protected]>2020-06-01 21:49:36 -0700
committerLinus Torvalds <[email protected]>2020-06-02 10:59:09 -0700
commit1c4448edb71ab9da35a938244602cdd75809de2b (patch)
tree5b7e28ed32baed94bbfaf3e86b4d6ca39d148cd9 /tools/perf/scripts/python/syscall-counts-by-pid.py
parenta6f5576bb195c3b7508e3e1c98d2dcf6691f96e8 (diff)
mm: memcontrol: simplify value comparison between count and limit
When the variables count and limit have the same value(count == limit), the result of min(margin, limit - count) statement should be 0 and the variable margin is set to 0. So in this case, the min() statement is not necessary and we can directly set the variable margin to 0. Signed-off-by: Kaixu Xia <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Acked-by: Michal Hocko <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Vladimir Davydov <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions