]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/cacheinfo: Rename 'struct _cpuid4_info_regs' to 'struct _cpuid4_info'
authorAhmed S. Darwish <darwi@linutronix.de>
Mon, 24 Mar 2025 13:33:11 +0000 (14:33 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 25 Mar 2025 09:22:49 +0000 (10:22 +0100)
commiteb1c7c08c5a8155d0d2d0a6c7fd741039b7287f1
tree8ff82d52fca8fb61b41d64ccec0c39839d1a55d6
parent2d56cc87225035919dfceb40e676081d833dab13
x86/cacheinfo: Rename 'struct _cpuid4_info_regs' to 'struct _cpuid4_info'

Parent commits decoupled amd_northbridge from _cpuid4_info_regs, moved
AMD L3 northbridge cache_disable_0/1 sysfs code to its own file, and
splitted AMD vs. Intel leaf 0x4 handling into:

    amd_fill_cpuid4_info()
    intel_fill_cpuid4_info()
    fill_cpuid4_info()

After doing all that, the "_cpuid4_info_regs" name becomes a mouthful.
It is also not totally accurate, as the structure holds cpuid4 derived
information like cache node ID and size -- not just regs.

Rename struct _cpuid4_info_regs to _cpuid4_info.  That new name also
better matches the AMD/Intel leaf 0x4 functions mentioned above.

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