mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
f2ff80877f
commit
11f8d55624
1 file changed
+10
-2
@@ -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)
|
||||
|
||||