Skip to content

Commit 6ffdc57

Browse files
John StultzKAGA-KOKO
authored andcommitted
ia64: Convert ia64 to use read/update_persistent_clock
This patch converts the ia64 architecture to use the generic read_persistent_clock and update_persistent_clock interfaces, reducing the amount of arch specific code we have to maintain, and allowing for further cleanups in the future. I have not built or tested this patch, so help from arch maintainers would be appreciated. Signed-off-by: John Stultz <johnstul@us.ibm.com> Cc: Tony Luck <tony.luck@intel.com> Cc: Fenghua Yu <fenghua.yu@intel.com> Cc: Andrew Morton <akpm@linux-foundation.org> LKML-Reference: <1267675049-12337-8-git-send-email-johnstul@us.ibm.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
1 parent e2032a4 commit 6ffdc57

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

‎arch/ia64/kernel/time.c‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -430,18 +430,16 @@ static int __init rtc_init(void)
430430
}
431431
module_init(rtc_init);
432432

433+
void read_persistent_clock(struct timespec *ts)
434+
{
435+
efi_gettimeofday(ts);
436+
}
437+
433438
void __init
434439
time_init (void)
435440
{
436441
register_percpu_irq(IA64_TIMER_VECTOR, &timer_irqaction);
437-
efi_gettimeofday(&xtime);
438442
ia64_init_itm();
439-
440-
/*
441-
* Initialize wall_to_monotonic such that adding it to xtime will yield zero, the
442-
* tv_nsec field must be normalized (i.e., 0 <= nsec < NSEC_PER_SEC).
443-
*/
444-
set_normalized_timespec(&wall_to_monotonic, -xtime.tv_sec, -xtime.tv_nsec);
445443
}
446444

447445
/*

0 commit comments

Comments
 (0)