diff options
author | 2025-03-24 14:33:19 +0100 | |
---|---|---|
committer | 2025-03-25 10:23:18 +0100 | |
commit | 66122616e212f1b9fee7d03582a5fdab2e8ed0e4 (patch) | |
tree | 2d65677b96a5b0439af2da37df5cb3ebc3268105 /lib/mpi/mpi-sub-ui.c | |
parent | x86/cacheinfo: Separate CPUID leaf 0x2 handling and post-processing logic (diff) | |
download | wireguard-linux-66122616e212f1b9fee7d03582a5fdab2e8ed0e4.tar.xz wireguard-linux-66122616e212f1b9fee7d03582a5fdab2e8ed0e4.zip |
x86/cacheinfo: Separate Intel CPUID leaf 0x4 handling
init_intel_cacheinfo() was overly complex. It parsed leaf 0x4 data,
leaf 0x2 data, and performed post-processing, all within one function.
Parent commit moved leaf 0x2 parsing and the post-processing logic into
their own functions.
Continue the refactoring by extracting leaf 0x4 parsing into its own
function. Initialize local L2/L3 topology ID variables to BAD_APICID by
default, thus ensuring they can be used unconditionally.
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-25-darwi@linutronix.de
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions