]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/cpu: Shorten CPU matching macro
authorPawan Gupta <pawan.kumar.gupta@linux.intel.com>
Tue, 11 Mar 2025 15:02:20 +0000 (08:02 -0700)
committerIngo Molnar <mingo@kernel.org>
Wed, 19 Mar 2025 10:16:46 +0000 (11:16 +0100)
commitc3390406adc62dd2d42eb522e1ce124fa43c5dec
tree682b91de8e29df326ae8b5cf49693550ee626a9c
parent7b9b54e23a677efdc76220903afa4262069a5dc7
x86/cpu: Shorten CPU matching macro

To add cpu-type to the existing CPU matching infrastructure, the base macro
X86_MATCH_VENDOR_FAM_MODEL_STEPPINGS_FEATURE need to append _CPU_TYPE. This
makes an already long name longer, and somewhat incomprehensible.

To avoid this, rename the base macro to X86_MATCH_CPU. The macro name
doesn't need to explicitly tell everything that it matches. The arguments
to the macro already hint at that.

For consistency, use this base macro to define X86_MATCH_VFM and friends.

Remove unused X86_MATCH_VENDOR_FAM_MODEL_FEATURE while at it.

  [ bp: Massage commit message. ]

Signed-off-by: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://lore.kernel.org/r/20250311-add-cpu-type-v8-2-e8514dcaaff2@linux.intel.com
arch/x86/include/asm/cpu_device_id.h