]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/tsc: Move away from TSC leaf magic numbers
authorDave Hansen <dave.hansen@linux.intel.com>
Fri, 13 Dec 2024 20:50:34 +0000 (12:50 -0800)
committerDave Hansen <dave.hansen@linux.intel.com>
Wed, 18 Dec 2024 14:17:38 +0000 (06:17 -0800)
commit030c15b5610cedf7eb428dab5382f73d492a7967
tree7eb19a4a552fb33f9823e604a7ca6ab75cdc1f78
parenta86740a77bf0942e618cc5f022336cdd99530d10
x86/tsc: Move away from TSC leaf magic numbers

The TSC code has a bunch of hard-coded references to leaf 0x15.  Change
them over to the symbolic name.  Also zap the 'ART_CPUID_LEAF' definition.
It was a duplicate of 'CPUID_TSC_LEAF'.

Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://lore.kernel.org/all/20241213205034.B79D6224%40davehans-spike.ostc.intel.com
arch/x86/kernel/tsc.c
drivers/platform/x86/intel/pmc/core.c