Re: [PATCH v4 29/71] x86/cpu/intel: Switch to new Intel CPU model defines

From: Borislav Petkov
Date: Thu Apr 25 2024 - 06:46:55 EST


On Wed, Apr 24, 2024 at 11:15:08AM -0700, Tony Luck wrote:
> +static bool vfm_match(struct cpuinfo_x86 *c, u32 vfm)
> +{
> + return c->x86_vendor == VFM_VENDOR(vfm) &&
> + c->x86 == VFM_FAMILY(vfm) &&
> + c->x86_model == VFM_MODEL(vfm);
> +}

Why is that one here?

It looks generic enough to put it in asm/processor.h so that it can get
used elsewhere too instead of homegrowing things again...

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette