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

Borislav Petkov <[email protected]> Sat, 30 May 2026 14:43:51 -0700
Newsgroups dev.linux.lists.x86-cpuid,org.kernel.vger.linux-kernel
Message-ID <20260530214351.GAahtaF5T7fXjmoox4@fat_crate.local>
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