]> www.infradead.org Git - users/hch/misc.git/commit
x86/cacheinfo: Use proper name for cacheinfo instances
authorThomas Gleixner <tglx@linutronix.de>
Mon, 24 Mar 2025 13:33:02 +0000 (14:33 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 25 Mar 2025 09:22:19 +0000 (10:22 +0100)
commitcf8758205264707b4521163c0a37bf587c4425c4
tree3ecc149e30fb8fed10f4abcbb51b3609a5ed1272
parent21e2a452dca34538db0731b45c113cfd31aa45e6
x86/cacheinfo: Use proper name for cacheinfo instances

The cacheinfo structure defined at <include/linux/cacheinfo.h> is a
generic cache info object representation.

Calling its instances at x86 cacheinfo.c "leaf" confuses it with a CPUID
leaf -- especially that multiple CPUID calls are already sprinkled across
that file.  Most of such instances also have a redundant "this_" prefix.

Rename all of the cacheinfo "this_leaf" instances to just "ci".

[ darwi: Move into separate commit and write commit log ]

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
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-8-darwi@linutronix.de
arch/x86/kernel/cpu/cacheinfo.c