diff options
author | Ahmed S. Darwish <darwi@linutronix.de> | 2025-03-24 14:33:18 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2025-03-25 10:23:15 +0100 |
commit | 5adfd367589cf9bb984aabfab74107bcf4402fde (patch) | |
tree | 45744674c3cf35df3b46d3fe757930e07e82f12e /scripts/lib/kdoc/kdoc_re.py | |
parent | 4772304ee651b952fd098ec80a8298af9905743f (diff) |
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 'scripts/lib/kdoc/kdoc_re.py')
0 files changed, 0 insertions, 0 deletions