]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/cpuid: Clean up <asm/cpuid/types.h>
authorIngo Molnar <mingo@kernel.org>
Mon, 17 Mar 2025 22:18:21 +0000 (23:18 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 19 Mar 2025 10:19:23 +0000 (11:19 +0100)
commit04a1007004da767db5ad8ba01809a5052c3a7909
treedd90017fc6e860e9d74d24a517adbf918f2ea29b
parentadc574269bca8dbde9f8f22841e40d3380241921
x86/cpuid: Clean up <asm/cpuid/types.h>

 - We have 0x0d, 0x9 and 0x1d as literals for the CPUID_LEAF definitions,
   pick a single, consistent style of 0xZZ literals.

 - Likewise, harmonize the style of the 'struct cpuid_regs' list of
   registers with that of 'enum cpuid_regs_idx'. Because while computers
   don't care about unnecessary visual noise, humans do.

Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: John Ogness <john.ogness@linutronix.de>
Cc: "Ahmed S. Darwish" <darwi@linutronix.de>
Cc: x86-cpuid@lists.linux.dev
Link: https://lore.kernel.org/r/20250317221824.3738853-3-mingo@kernel.org
arch/x86/include/asm/cpuid/types.h