]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/cacheinfo: Extract out cache level topology ID calculation
authorAhmed S. Darwish <darwi@linutronix.de>
Mon, 24 Mar 2025 13:33:20 +0000 (14:33 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 25 Mar 2025 09:23:21 +0000 (10:23 +0100)
commitfda5f817ae41035db9e36854600525145688b35e
tree6289812d97449250792e905e51453a5989b7c2bb
parent66122616e212f1b9fee7d03582a5fdab2e8ed0e4
x86/cacheinfo: Extract out cache level topology ID calculation

For Intel CPUID leaf 0x4 parsing, refactor the cache level topology ID
calculation code into its own method instead of repeating the same logic
twice for L2 and L3.

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-26-darwi@linutronix.de
arch/x86/kernel/cpu/cacheinfo.c