]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/cacheinfo: Relocate CPUID leaf 0x4 cache_type mapping
authorAhmed S. Darwish <darwi@linutronix.de>
Mon, 24 Mar 2025 13:33:22 +0000 (14:33 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 25 Mar 2025 09:23:27 +0000 (10:23 +0100)
commiteeeebc4fc642f492522e4be92dcaf22119123581
tree86ae656fea2d14e0b5e528e41a2c903079426f4b
parent05d48035e5f69cfe3c125b2bac47e4003b4acccf
x86/cacheinfo: Relocate CPUID leaf 0x4 cache_type mapping

The cache_type_map[] array is used to map Intel leaf 0x4 cache_type
values to their corresponding types at <linux/cacheinfo.h>.

Move that array's definition after the actual CPUID leaf 0x4 structures,
instead of having it in the middle of AMD leaf 0x4 emulation code.

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