aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorKefeng Wang <[email protected]>2024-02-08 10:25:08 +0800
committerAndrew Morton <[email protected]>2024-02-23 17:48:31 -0800
commitf6f3f27597864d38bce5b4c346494970ecc19544 (patch)
treed39fc2ebc67485f4676dd111709e303a63d40435 /tools/perf/scripts/python/flamegraph.py
parent55e78c933d747ed44b2b22879e6a55e5af34b9f7 (diff)
mm: compaction: early termination in compact_nodes()
No need to continue try compact memory if pending fatal signal, allow loop termination earlier in compact_nodes(). The existing fatal_signal_pending() check does make compact_zone() break out of the while loop, but it still enters the next zone/next nid, and some unnecessary functions(eg, lru_add_drain) are called. There was no observable benefit from the new test, it is just found from code inspection when refactoring compact_node(). Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Kefeng Wang <[email protected]> Cc: David Hildenbrand <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions