]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
x86/time: initialise time earlier during start_secondary()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 13 Mar 2014 13:37:04 +0000 (14:37 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 13 Mar 2014 13:37:04 +0000 (14:37 +0100)
It is safe to do so, and useful for "[second.microseconds]" style timestamps
on printk()s during secondary bringup.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/smpboot.c

index 42b8a590a6a11a9b0db90a2c703b215328132e7b..501439780524cc5304f3660434e45d9a39b10134 100644 (file)
@@ -347,6 +347,8 @@ void start_secondary(void *unused)
 
     percpu_traps_init();
 
+    init_percpu_time();
+
     cpu_init();
 
     smp_callin();
@@ -381,8 +383,6 @@ void start_secondary(void *unused)
     cpumask_set_cpu(cpu, &cpu_online_map);
     unlock_vector_lock();
 
-    init_percpu_time();
-
     /* We can take interrupts now: we're officially "up". */
     local_irq_enable();
     mtrr_ap_init();