Commit c4507257 authored by John Stultz's avatar John Stultz Committed by Thomas Gleixner

time: Clean up direct xtime usage in xen

Cleanup xen's direct use of internal timekeeping values.
Signed-off-by: default avatarJohn Stultz <johnstul@us.ibm.com>
Acked-by: default avatarJeremy Fitzhardinge <jeremy@xensource.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 522dba71
...@@ -475,6 +475,7 @@ void xen_timer_resume(void) ...@@ -475,6 +475,7 @@ void xen_timer_resume(void)
__init void xen_time_init(void) __init void xen_time_init(void)
{ {
int cpu = smp_processor_id(); int cpu = smp_processor_id();
struct timespec tp;
clocksource_register(&xen_clocksource); clocksource_register(&xen_clocksource);
...@@ -486,9 +487,8 @@ __init void xen_time_init(void) ...@@ -486,9 +487,8 @@ __init void xen_time_init(void)
} }
/* Set initial system time with full resolution */ /* Set initial system time with full resolution */
xen_read_wallclock(&xtime); xen_read_wallclock(&tp);
set_normalized_timespec(&wall_to_monotonic, do_settimeofday(&tp);
-xtime.tv_sec, -xtime.tv_nsec);
setup_force_cpu_cap(X86_FEATURE_TSC); setup_force_cpu_cap(X86_FEATURE_TSC);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment