diff options
| author | Miaohe Lin <[email protected]> | 2023-08-01 20:37:23 +0800 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-08-21 13:37:32 -0700 |
| commit | ebddd111fcd13fefd7350f77201dfc5605672909 (patch) | |
| tree | 69c3d3111aa489e9e7ffbc82ac7ebaca3f3c53cd /tools/perf/scripts/python | |
| parent | 549f5c771e1be6985c29d5f1e0bbba11a8897ec8 (diff) | |
mm/page_alloc: avoid unneeded alike_pages calculation
When free_pages is 0, alike_pages is not used. So alike_pages calculation
can be avoided by checking free_pages early to save cpu cycles. Also fix
typo 'comparable'. It should be 'compatible' here.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Miaohe Lin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions