diff options
| author | Ahmed S. Darwish <[email protected]> | 2025-03-24 13:33:18 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2025-03-25 09:23:15 +0000 |
| commit | 5adfd367589cf9bb984aabfab74107bcf4402fde (patch) | |
| tree | 45744674c3cf35df3b46d3fe757930e07e82f12e /net/core/dev_api.c | |
| parent | x86/cpu: Use consolidated CPUID leaf 0x2 descriptor table (diff) | |
| download | kernel-5adfd367589cf9bb984aabfab74107bcf4402fde.tar.gz kernel-5adfd367589cf9bb984aabfab74107bcf4402fde.zip | |
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 <[email protected]>
Signed-off-by: Ahmed S. Darwish <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Linus Torvalds <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'net/core/dev_api.c')
0 files changed, 0 insertions, 0 deletions
