Re: [PATCH v3 1/5] x86/cpu: Factor init_cpu_info() out of identify_cpu()
From: bot+bpf-ci
Date: Thu Sep 17 2026 - 19:53:54 EST
> x86/cpu: Factor init_cpu_info() out of identify_cpu()
>
> 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.
>
> No functional changes.
This isn't a bug, but would it be worth adding a line noting that
c->extended_cpuid_level = 0 also moves here from generic_identify(),
which identify_cpu() is the only caller of? That is the one part of the
move that isn't local to identify_cpu(), so it would make the "No
functional changes" claim easier to confirm.
---
AI reviewed your patch. Please fix the bug or email reply why it's not a bug.
See: https://github.com/kernel-patches/vmtest/blob/master/ci/claude/README.md
CI run summary: https://github.com/kernel-patches/bpf/actions/runs/35285131592