aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorJianyu Zhan <[email protected]>2014-06-04 16:09:51 -0700
committerLinus Torvalds <[email protected]>2014-06-04 16:54:07 -0700
commitbea04b073292b2acb522c7c1aa67a4fc58151530 (patch)
tree9d4efd221e0fa4b649cc6fbcfa19baa22cb3b3be /tools/perf/scripts/python/event_analyzing_sample.py
parente9ade569910a82614ff5f2c2cea2b65a8d785da4 (diff)
mm: use the light version __mod_zone_page_state in mlocked_vma_newpage()
mlocked_vma_newpage() is called with pte lock held(a spinlock), which implies preemtion disabled, and the vm stat counter is not modified from interrupt context, so we need not use an irq-safe mod_zone_page_state() here, using a light-weight version __mod_zone_page_state() would be OK. This patch also documents __mod_zone_page_state() and some of its callsites. The comment above __mod_zone_page_state() is from Hugh Dickins, and acked by Christoph. Most credits to Hugh and Christoph for the clarification on the usage of the __mod_zone_page_state(). [[email protected]: coding-style fixes] Suggested-by: Andrew Morton <[email protected]> Acked-by: Hugh Dickins <[email protected]> Signed-off-by: Jianyu Zhan <[email protected]> Reviewed-by: Christoph Lameter <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions