aboutsummaryrefslogtreecommitdiff
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorDavid Rientjes <[email protected]>2012-12-12 13:51:57 -0800
committerLinus Torvalds <[email protected]>2012-12-12 17:38:34 -0800
commit68ae564bbac8eb9ed54ddd2529b0e29ee190b355 (patch)
tree5cef83b5fa072f62091552457e7d0319ce170b98 /lib/string_helpers.c
parent05b0afd73d04109d87f00ccd39f099e217c37263 (diff)
mm, memcg: avoid unnecessary function call when memcg is disabled
While profiling numa/core v16 with cgroup_disable=memory on the command line, I noticed mem_cgroup_count_vm_event() still showed up as high as 0.60% in perftop. This occurs because the function is called extremely often even when memcg is disabled. To fix this, inline the check for mem_cgroup_disabled() so we avoid the unnecessary function call if memcg is disabled. Signed-off-by: David Rientjes <[email protected]> Acked-by: KAMEZAWA Hiroyuki <[email protected]> Acked-by: Glauber Costa <[email protected]> Acked-by: Michal Hocko <[email protected]> Acked-by: Johannes Weiner <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions