diff options
Diffstat (limited to 'arch/x86/xen/time.c')
-rw-r--r-- | arch/x86/xen/time.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/xen/time.c b/arch/x86/xen/time.c index 32764b8880b5..b3c6c59ed302 100644 --- a/arch/x86/xen/time.c +++ b/arch/x86/xen/time.c | |||
@@ -476,6 +476,7 @@ void xen_timer_resume(void) | |||
476 | __init void xen_time_init(void) | 476 | __init void xen_time_init(void) |
477 | { | 477 | { |
478 | int cpu = smp_processor_id(); | 478 | int cpu = smp_processor_id(); |
479 | struct timespec tp; | ||
479 | 480 | ||
480 | clocksource_register(&xen_clocksource); | 481 | clocksource_register(&xen_clocksource); |
481 | 482 | ||
@@ -487,9 +488,8 @@ __init void xen_time_init(void) | |||
487 | } | 488 | } |
488 | 489 | ||
489 | /* Set initial system time with full resolution */ | 490 | /* Set initial system time with full resolution */ |
490 | xen_read_wallclock(&xtime); | 491 | xen_read_wallclock(&tp); |
491 | set_normalized_timespec(&wall_to_monotonic, | 492 | do_settimeofday(&tp); |
492 | -xtime.tv_sec, -xtime.tv_nsec); | ||
493 | 493 | ||
494 | setup_force_cpu_cap(X86_FEATURE_TSC); | 494 | setup_force_cpu_cap(X86_FEATURE_TSC); |
495 | 495 | ||