Re: [PATCH] x86/topo: Map vendor CPU types to generic Linux such types

From: Pawan Gupta

Date: Fri Aug 28 2026 - 15:55:48 EST


On Thu, Aug 27, 2026 at 01:44:25PM -0700, Borislav Petkov wrote:
> diff --git a/arch/x86/events/intel/core.c b/arch/x86/events/intel/core.c
> index cc13164d948f..f14775968308 100644
> --- a/arch/x86/events/intel/core.c
> +++ b/arch/x86/events/intel/core.c
> @@ -5682,9 +5682,9 @@ static int adl_hw_config(struct perf_event *event)
> return -EOPNOTSUPP;
> }
>
> -static enum intel_cpu_type adl_get_hybrid_cpu_type(void)
> +static enum x86_topology_cpu_type adl_get_hybrid_cpu_type(void)
> {
> - return INTEL_CPU_TYPE_CORE;
> + return TOPO_CPU_TYPE_EFFICIENCY;

Should be:

return TOPO_CPU_TYPE_PERFORMANCE;