diff options
author | Ahmed S. Darwish <darwi@linutronix.de> | 2025-03-04 09:51:17 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2025-03-04 11:17:33 +0100 |
commit | cb5f4c76b2a9314c35e00c67c98ccd03542c2634 (patch) | |
tree | d39dbd13664498f328b833afc159d094cd97db4c /tools/perf/scripts/python/export-to-sqlite.py | |
parent | dec7fdc0b79c2ae0a537343b17f5ba1c6c47e1ca (diff) |
x86/cpu: Use max() for CPUID leaf 0x2 TLB descriptors parsing
The conditional statement "if (x < y) { x = y; }" appears 22 times at
the Intel leaf 0x2 descriptors parsing logic.
Replace each of such instances with a max() expression to simplify
the code.
Signed-off-by: Ahmed S. Darwish <darwi@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20250304085152.51092-7-darwi@linutronix.de
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions