]> xenbits.xensource.com Git - people/andrewcoop/xen.git/commitdiff
x86/traps: Move cpu_init() out of trap_init()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 6 Jan 2025 06:36:34 +0000 (06:36 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 21 Mar 2025 11:52:39 +0000 (11:52 +0000)
cpu_init() doesn't particularly belong in trap_init().  This brings the BSP
more in line with the APs.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/setup.c
xen/arch/x86/traps.c

index 715719213de7c19fb5fe4522beb43c8ecf4856c7..5daa70fc0fadd3493a6584aa5e4d1700ee5d3ec2 100644 (file)
@@ -2024,6 +2024,8 @@ void asmlinkage __init noreturn __start_xen(void)
 
     trap_init();
 
+    cpu_init();
+
     rcu_init();
 
     early_time_init();
index df1155bfb67311716cc7a2609baae06ce8378760..a89f4f4f34ea03e69a27032d810a33aa97aac377 100644 (file)
@@ -1938,8 +1938,6 @@ void __init trap_init(void)
             l1e_from_pfn(virt_to_mfn(boot_compat_gdt), __PAGE_HYPERVISOR_RW);
 
     percpu_traps_init();
-
-    cpu_init();
 }
 
 void asm_domain_crash_synchronous(unsigned long addr)