aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorWei Yang <[email protected]>2017-09-06 16:24:09 -0700
committerLinus Torvalds <[email protected]>2017-09-06 17:27:29 -0700
commitc568da282bbc8f09c4b49201177fa259fe184c47 (patch)
tree5d64a076386bd15715c4c287edcd079a17640650 /tools/perf/scripts/python/export-to-postgresql.py
parent88d6ac40c1c6b2334046d3f89f1911a3c8febd4c (diff)
mm/vmalloc.c: halve the number of comparisons performed in pcpu_get_vm_areas()
In pcpu_get_vm_areas(), it checks each range is not overlapped. To make sure it is, only (N^2)/2 comparison is necessary, while current code does N^2 times. By starting from the next range, it achieves the goal and the continue could be removed. Also, - the overlap check of two ranges could be done with one clause - one typo in comment is fixed. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Wei Yang <[email protected]> Acked-by: Tejun Heo <[email protected]> Cc: Michal Hocko <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions