diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-19 20:10:06 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-19 20:10:06 -0400 |
commit | 7d02093e29de9efc4a72d5e93baae9506969b789 (patch) | |
tree | a6fc2450132ae419934f6eb9d223baa338b7d782 /arch/x86/xen | |
parent | 6e0b7b2c39b91b467270dd0bc383914f99e1fb28 (diff) | |
parent | e9ddbc075d95b2edf111247cdde16f33c31654a8 (diff) |
Merge branch 'timers-for-linus-cleanups' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'timers-for-linus-cleanups' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
avr32: Fix typo in read_persistent_clock()
sparc: Convert sparc to use read/update_persistent_clock
cris: Convert cris to use read/update_persistent_clock
m68k: Convert m68k to use read/update_persistent_clock
m32r: Convert m32r to use read/update_peristent_clock
blackfin: Convert blackfin to use read/update_persistent_clock
ia64: Convert ia64 to use read/update_persistent_clock
avr32: Convert avr32 to use read/update_persistent_clock
h8300: Convert h8300 to use read/update_persistent_clock
frv: Convert frv to use read/update_persistent_clock
mn10300: Convert mn10300 to use read/update_persistent_clock
alpha: Convert alpha to use read/update_persistent_clock
xtensa: Fix unnecessary setting of xtime
time: Clean up direct xtime usage in xen
Diffstat (limited to 'arch/x86/xen')
-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 | ||