]> www.infradead.org Git - users/hch/misc.git/commit
x86/cacheinfo: Use CPUID leaf 0x2 parsing helpers
authorAhmed S. Darwish <darwi@linutronix.de>
Mon, 24 Mar 2025 13:32:59 +0000 (14:32 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 25 Mar 2025 09:22:10 +0000 (10:22 +0100)
commita078aaa38a23a2595addb14ac286d8b8ae793d39
tree4ccae8a4bfe8bb0f5e5f1019f8685859688bd97b
parentfe78079ec07fd48a19abcfeac74bc97e07171fb6
x86/cacheinfo: Use CPUID leaf 0x2 parsing helpers

Parent commit introduced CPUID leaf 0x2 parsing helpers at
<asm/cpuid/leaf_0x2_api.h>.  The new API allows sharing leaf 0x2's output
validation and iteration logic across both intel.c and cacheinfo.c.

Convert cacheinfo.c to that new API.

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