]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/cacheinfo: Apply maintainer-tip coding style fixes
authorAhmed S. Darwish <darwi@linutronix.de>
Mon, 24 Mar 2025 13:33:24 +0000 (14:33 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 25 Mar 2025 09:23:37 +0000 (10:23 +0100)
commit0dd09e215a391805130338688586805fe8bf2b32
tree5d91cd545e1df1ec6133a913d157831c2d61ffd9
parent6c963c42fc19d7c9ae9582ab75c3476d1752d979
x86/cacheinfo: Apply maintainer-tip coding style fixes

The x86/cacheinfo code has been heavily refactored and fleshed out at
parent commits, where any necessary coding style fixes were also done
in place.

Apply Documentation/process/maintainer-tip.rst coding style fixes to the
rest of the code, and align its assignment expressions for readability.

Standardize on CPUID(n) when mentioning leaf queries.

Avoid breaking long lines when doing so helps readability.

At cacheinfo_amd_init_llc_id(), rename variable 'msb' to 'index_msb' as
this is how it's called at the rest of cacheinfo.c code.

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