diff options
| author | Matthew Wilcox (Oracle) <[email protected]> | 2022-06-17 18:50:08 +0100 |
|---|---|---|
| committer | akpm <[email protected]> | 2022-07-03 18:08:46 -0700 |
| commit | 4864545a4669781f75aa711ebf7b25e6f0f37d13 (patch) | |
| tree | fa9574a7d3e212edb3f9b6f0378280fbc6f0b329 /tools/perf/scripts/python/flamegraph.py | |
| parent | 82ac64d86fb079431e3af618a074e77be398299b (diff) | |
mm/swap: pull the CPU conditional out of __lru_add_drain_all()
The function is too long, so pull this complicated conditional out into
cpu_needs_drain(). This ends up shrinking the text by 14 bytes,
by allowing GCC to cache the result of calling per_cpu() instead of
relocating each lookup individually.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Matthew Wilcox (Oracle) <[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