Skip to content

Commit

Permalink
xtensa: Fix unnecessary setting of xtime
Browse files Browse the repository at this point in the history
xtensa supports read_persisitent_clock(), so there is no reason for
the arch specific code to be setting xtime.  Setting xtime will be
done by the generic timekeeping code.

Signed-off-by: John Stultz <johnstul@us.ibm.com>
Cc: Chris Zankel <chris@zankel.net>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
John Stultz authored and Thomas Gleixner committed Mar 12, 2010
1 parent c450725 commit 104f9c4
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions arch/xtensa/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,6 @@ static struct irqaction timer_irqaction = {

void __init time_init(void)
{
/* FIXME: xtime&wall_to_monotonic are set in timekeeping_init. */
read_persistent_clock(&xtime);
set_normalized_timespec(&wall_to_monotonic,
-xtime.tv_sec, -xtime.tv_nsec);

#ifdef CONFIG_XTENSA_CALIBRATE_CCOUNT
printk("Calibrating CPU frequency ");
platform_calibrate_ccount();
Expand Down

0 comments on commit 104f9c4

Please sign in to comment.