diff options
author | Ahmed S. Darwish <darwi@linutronix.de> | 2025-03-24 16:33:18 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2025-03-25 12:23:15 +0300 |
commit | 5adfd367589cf9bb984aabfab74107bcf4402fde (patch) | |
tree | 45744674c3cf35df3b46d3fe757930e07e82f12e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 4772304ee651b952fd098ec80a8298af9905743f (diff) | |
download | linux-5adfd367589cf9bb984aabfab74107bcf4402fde.tar.xz |
x86/cacheinfo: Separate CPUID leaf 0x2 handling and post-processing logic
The logic of init_intel_cacheinfo() is quite convoluted: it mixes leaf
0x4 parsing, leaf 0x2 parsing, plus some post-processing, in a single
place.
Begin simplifying its logic by extracting the leaf 0x2 parsing code, and
the post-processing logic, into their own functions. While at it,
rework the SMT LLC topology ID comment for clarity.
Suggested-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ahmed S. Darwish <darwi@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/r/20250324133324.23458-24-darwi@linutronix.de
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions