aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMiaohe Lin <[email protected]>2023-07-11 13:50:12 +0800
committerAndrew Morton <[email protected]>2023-08-18 10:12:19 -0700
commit55c7ac4527086d52dedc5da4ee3d676bcc9a7691 (patch)
tree2b9da0860dcb6d8b75517503e9b018dd666b8fce /tools/perf/scripts/python
parent80ee7cb271b52e5861eda3c67731c95fd55a2627 (diff)
mm: memory-failure: use local variable huge to check hugetlb page
Use local variable huge to check whether page is hugetlb page to avoid calling PageHuge() multiple times to save cpu cycles. PageHuge() will be stable while extra page refcnt is held. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Miaohe Lin <[email protected]> Acked-by: Naoya Horiguchi <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions