diff options
| author | Ihor Solodrai <ihor.solodrai@linux.dev> | 2026-09-16 12:51:59 -0700 |
|---|---|---|
| committer | Borislav Petkov (AMD) <bp@alien8.de> | 2026-09-17 01:54:28 +0200 |
| commit | 54a2882ab9f75ab8a77a4f113145d4d709d2387c (patch) | |
| tree | 2d3fc5c2a1386fd713bd641ea43ff42b0e04d8de /tools/perf/scripts/python/stackcollapse.py | |
| parent | 228200f695c0f92c5fd06ff0bdcf94bb0d2ca7f5 (diff) | |
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.
Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://patch.msgid.link/20260916195203.1099646-2-ihor.solodrai@linux.dev
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
