aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorZlatko Calusic <[email protected]>2013-02-22 16:32:34 -0800
committerLinus Torvalds <[email protected]>2013-02-23 17:50:10 -0800
commitdafcb73e385e39b9a7ebd5c4ecbc4ae921862eb9 (patch)
tree407a7710a7c4c6382bb9d415cd8de05430821600 /tools/perf/scripts/python/netdev-times.py
parent7103f16dbff20fa969c9500902d980d17f953fa6 (diff)
mm: avoid calling pgdat_balanced() needlessly
Now that balance_pgdat() is slightly tidied up, thanks to more capable pgdat_balanced(), it's become obvious that pgdat_balanced() is called to check the status, then break the loop if pgdat is balanced, just to be immediately called again. The second call is completely unnecessary, of course. The patch introduces pgdat_is_balanced boolean, which helps resolve the above suboptimal behavior, with the added benefit of slightly better documenting one other place in the function where we jump and skip lots of code. Signed-off-by: Zlatko Calusic <[email protected]> Cc: Mel Gorman <[email protected]> Cc: Hugh Dickins <[email protected]> Cc: Minchan Kim <[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