aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorXin Hao <[email protected]>2023-05-31 17:58:17 +0800
committerAndrew Morton <[email protected]>2023-06-09 16:25:51 -0700
commit16618670276a77480e274117992cec5e42ce66a9 (patch)
treef9cccd496b940ec7dd06bc118471e2036d208471 /tools/perf/scripts/python/stackcollapse.py
parent3b11edf1f2398cac206a224308de6628ebeea924 (diff)
mm: khugepaged: avoid pointless allocation for "struct mm_slot"
In __khugepaged_enter(), if "mm->flags" with MMF_VM_HUGEPAGE bit is set, the "mm_slot" will be released and return, so we can call mm_slot_alloc() after test_and_set_bit(). Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Xin Hao <[email protected]> Reviewed-by: Andrew Morton <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions