Re: [PATCH v7 010/120] x86/lib: Add CPUID(0x1) family and model calculation

From: Borislav Petkov

Date: Sat May 30 2026 - 17:44:43 EST


On Thu, May 28, 2026 at 05:37:32PM +0200, Ahmed S. Darwish wrote:
> +static unsigned int
> +__x86_model(unsigned int family, unsigned int base_model, unsigned int ext_model)

No need for that ugly linebreak.

> +{
> + if (family >= 0x6)
> + base_model |= ext_model << 4;
>
> - return x86;
> + return base_model;
> +}

--
Regards/Gruss,
Boris.

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