aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorOleg Nesterov <[email protected]>2014-06-04 16:07:54 -0700
committerLinus Torvalds <[email protected]>2014-06-04 16:54:03 -0700
commit39af1765f1255b2bbadc3064e16270781abf24a1 (patch)
tree55d8a858a7ab136314a397bebbd5bd72f0b0ee2b /tools/perf/scripts/python/netdev-times.py
parentf87fb599ae4d2a152a93f9821b94f3158146d097 (diff)
memcg: optimize the "Search everything else" loop in mm_update_next_owner()
for_each_process_thread() is sub-optimal. All threads share the same ->mm, we can swicth to the next process once we found a thread with ->mm != NULL and ->mm != mm. Signed-off-by: Oleg Nesterov <[email protected]> Reviewed-by: Michal Hocko <[email protected]> Cc: Balbir Singh <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: KAMEZAWA Hiroyuki <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Peter Chiang <[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