Re: [PATCH v2 1/5] x86/cpu: Factor init_cpu_info() out of identify_cpu()

From: Borislav Petkov

Date: Wed Sep 09 2026 - 22:33:42 EST


On Fri, Aug 14, 2026 at 04:51:30PM -0700, Ihor Solodrai wrote:
> identify_cpu() unconditionally resets the struct cpuinfo_x86 fields to
> their default values and clears the capability arrays with memset()
> before rescanning the CPU to fill it in again.
>
> However the boot CPU capabilities have already been scanned by
> early_identify_cpu(), with interrupts disabled.
>
> Introduce init_cpu_info() helper in preparation for letting the
> callers decide whether the reset is needed.
>
> early_identify_cpu() starts using the helper in the next patch.

No need for that sentence. I'll zap it.

--
Regards/Gruss,
Boris.

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