x86/cpu/vfm: Add new macros to work with (vendor/family/model) values
authorTony Luck <tony.luck@intel.com>
Tue, 16 Apr 2024 21:19:04 +0000 (14:19 -0700)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 22 Apr 2024 09:43:55 +0000 (11:43 +0200)
commite6dfdc2e89a0adedf455814c91b977d6a584cc88
tree80ac05d5fff6f12117419fbafdc64c0032fed29a
parenta9d0adce69075192961f3be466c4810a21b7bc9e
x86/cpu/vfm: Add new macros to work with (vendor/family/model) values

To avoid adding a slew of new macros for each new Intel CPU family
switch over from providing CPU model number #defines to a new
scheme that encodes vendor, family, and model in a single number.

  [ bp: s/casted/cast/g ]

Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20240416211941.9369-3-tony.luck@intel.com
arch/x86/include/asm/cpu_device_id.h