]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/cpu: Refresh DCA leaf reading code
authorDave Hansen <dave.hansen@linux.intel.com>
Fri, 13 Dec 2024 20:50:32 +0000 (12:50 -0800)
committerDave Hansen <dave.hansen@linux.intel.com>
Wed, 18 Dec 2024 14:17:34 +0000 (06:17 -0800)
commit5d82d8e0a9ac06bfc6ac59407b96bc357eff441a
tree11073a5c5f9c4c85a43b5faade15025d89e5903e
parent262fba55708b60a063b30d103963477dc5026f8c
x86/cpu: Refresh DCA leaf reading code

The DCA leaf number is also hard-coded in the CPUID level dependency
table. Move its definition to common code and use it.

While at it, fix up the naming and types in the probe code.  All
CPUID data is provided in 32-bit registers, not 'unsigned long'.
Also stop referring to "level_9".  Move away from test_bit()
because the type is no longer an 'unsigned long'.

Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Link: https://lore.kernel.org/all/20241213205032.476A30FE%40davehans-spike.ostc.intel.com
arch/x86/include/asm/cpuid.h
arch/x86/kernel/cpu/common.c
drivers/dma/ioat/dca.c