Re: [PATCH V4 02/25] x86/cpu: Add helper function to get the type of the current hybrid CPU

From: Borislav Petkov
Date: Fri Apr 02 2021 - 05:26:00 EST


On Thu, Apr 01, 2021 at 05:10:29PM -0700, kan.liang@xxxxxxxxxxxxxxx wrote:
> diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h
> index dc6d149bf851..746512a68b30 100644
> --- a/arch/x86/include/asm/processor.h
> +++ b/arch/x86/include/asm/processor.h
> @@ -166,6 +166,8 @@ enum cpuid_regs_idx {
>
> #define X86_VENDOR_UNKNOWN 0xff
>
> +#define X86_HYBRID_CPU_TYPE_ID_SHIFT 24

Just put that over the function where it is used, i.e. in intel.c

With that addressed:

Acked-by: Borislav Petkov <bp@xxxxxxx>

--
Regards/Gruss,
Boris.

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