aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/xen/time.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/xen/time.c b/arch/x86/xen/time.c
index 0d3f07cd1b5f..6365df925cb1 100644
--- a/arch/x86/xen/time.c
+++ b/arch/x86/xen/time.c
@@ -475,6 +475,7 @@ void xen_timer_resume(void)
475__init void xen_time_init(void) 475__init void xen_time_init(void)
476{ 476{
477 int cpu = smp_processor_id(); 477 int cpu = smp_processor_id();
478 struct timespec tp;
478 479
479 clocksource_register(&xen_clocksource); 480 clocksource_register(&xen_clocksource);
480 481
@@ -486,9 +487,8 @@ __init void xen_time_init(void)
486 } 487 }
487 488
488 /* Set initial system time with full resolution */ 489 /* Set initial system time with full resolution */
489 xen_read_wallclock(&xtime); 490 xen_read_wallclock(&tp);
490 set_normalized_timespec(&wall_to_monotonic, 491 do_settimeofday(&tp);
491 -xtime.tv_sec, -xtime.tv_nsec);
492 492
493 setup_force_cpu_cap(X86_FEATURE_TSC); 493 setup_force_cpu_cap(X86_FEATURE_TSC);
494 494