x86/cacheinfo: Properly name amd_cpuid4()'s first parameter
authorThomas Gleixner <tglx@linutronix.de>
Mon, 24 Mar 2025 13:33:01 +0000 (14:33 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 25 Mar 2025 09:22:16 +0000 (10:22 +0100)
commit21e2a452dca34538db0731b45c113cfd31aa45e6
treeb482e67fd1e132d682cd91d918fe756c24644f7b
parentee159792a4db06e359a5e2e231c6f1242ec76c31
x86/cacheinfo: Properly name amd_cpuid4()'s first parameter

amd_cpuid4()'s first parameter, "leaf", is not a CPUID leaf as the name
implies.  Rather, it's an index emulating CPUID(4)'s subleaf semantics;
i.e. an ID for the cache object currently enumerated.  Rename that
parameter to "index".

Apply minor coding style fixes to the rest of the function as well.

[ darwi: Move into a separate commit and write commit log.
 Use "index" instead of "subleaf" for amd_cpuid4() first param,
 as that's the name typically used at the whole of cacheinfo.c. ]

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