diff options
author | John Stultz <johnstul@us.ibm.com> | 2010-03-03 22:57:17 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2010-03-12 19:14:09 -0500 |
commit | f7a56575fa4e62e94a644f72ef8c5d423c073982 (patch) | |
tree | 0995042279cfc27e4b9e11dc018edd492b0bd044 /arch/mn10300/kernel/time.c | |
parent | 1e871be1aa97babb467a929d6adcb1960659928b (diff) |
mn10300: Convert mn10300 to use read/update_persistent_clock
This patch converts the mn10300 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: David Howells <dhowells@redhat.com>
Cc: Koichi Yasutake <yasutake.koichi@jp.panasonic.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
LKML-Reference: <1267675049-12337-3-git-send-email-johnstul@us.ibm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/mn10300/kernel/time.c')
-rw-r--r-- | arch/mn10300/kernel/time.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/mn10300/kernel/time.c b/arch/mn10300/kernel/time.c index 395caf01b909..8f7f6d22783d 100644 --- a/arch/mn10300/kernel/time.c +++ b/arch/mn10300/kernel/time.c | |||
@@ -111,7 +111,6 @@ static irqreturn_t timer_interrupt(int irq, void *dev_id) | |||
111 | /* advance the kernel's time tracking system */ | 111 | /* advance the kernel's time tracking system */ |
112 | profile_tick(CPU_PROFILING); | 112 | profile_tick(CPU_PROFILING); |
113 | do_timer(1); | 113 | do_timer(1); |
114 | check_rtc_time(); | ||
115 | } | 114 | } |
116 | 115 | ||
117 | write_sequnlock(&xtime_lock); | 116 | write_sequnlock(&xtime_lock); |
@@ -139,9 +138,6 @@ void __init time_init(void) | |||
139 | " (calibrated against RTC)\n", | 138 | " (calibrated against RTC)\n", |
140 | MN10300_TSCCLK / 1000000, (MN10300_TSCCLK / 10000) % 100); | 139 | MN10300_TSCCLK / 1000000, (MN10300_TSCCLK / 10000) % 100); |
141 | 140 | ||
142 | xtime.tv_sec = get_initial_rtc_time(); | ||
143 | xtime.tv_nsec = 0; | ||
144 | |||
145 | mn10300_last_tsc = TMTSCBC; | 141 | mn10300_last_tsc = TMTSCBC; |
146 | 142 | ||
147 | /* use timer 0 & 1 cascaded to tick at as close to HZ as possible */ | 143 | /* use timer 0 & 1 cascaded to tick at as close to HZ as possible */ |