Re: [PATCH 1/2] x86/topology: Name the AMD core-type values
From: Borislav Petkov
Date: Thu Jul 02 2026 - 19:04:51 EST
On Fri, Jul 03, 2026 at 12:06:32AM +0200, Thomas Gleixner wrote:
> Just do the mapping to vendor-agnostic types _once_ when you enumerate the CPU
> and store that information in the per CPU data.
>
> Then you can do proper vendor agnostic matching against that and define
> the TYPE_ANY value as you want without ever colliding with vendor
> muck.
>
> As a bonus get_topology_cpu_type() goes away too as the translation has
> been done already.
Yeah, we should've done it from the very beginning this way. Lemme hack it up
and see how it looks like.
Thanks for the cool idea.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette