x86/CPU: re-arrange tail of early_cpu_init()

Some early setup doesn't need re-doing after ucode load. Move the call to
initialize_cpu_data() slightly up and add a conditional return point.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Roger Pau Monné <roger@xenproject.org>
This commit is contained in:
Jan Beulich committed 2026-09-02 15:14:55 +02:00
1 parent f2ff80877f
commit 11f8d55624
1 file changed
+10 -2
+10 -2
View File
@@ -432,10 +432,18 @@ void __init early_cpu_init(bool verbose)
paddr_bits -= (ebx >> 6) & 0x3f;
}
initialize_cpu_data(0);
if (!verbose)
return;
/*
* Work which doesn't need repeating after microcode load goes below
* here.
*/
if (!(c->vendor & (X86_VENDOR_AMD | X86_VENDOR_HYGON)))
park_offline_cpus = opt_mce;
initialize_cpu_data(0);
}
void reset_cpuinfo(struct cpuinfo_x86 *c, bool keep_basic)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.