aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/time.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2006-09-27 04:11:32 -0400
committerPaul Mundt <lethal@linux-sh.org>2006-09-27 04:11:32 -0400
commitaf514ca7d27b31e3c278e1331f0ebdb3ad385a90 (patch)
treeaf5444786b8b9251e6a6f011ee71333025bb2c84 /arch/sh/kernel/time.c
parent2991be725260d6fec11691a6138b9d71de949956 (diff)
sh: Rename rtc_get/set_time() to avoid RTC_CLASS conflict.
We have a clash with RTC_CLASS over these names, so we change them.. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/time.c')
-rw-r--r--arch/sh/kernel/time.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/sh/kernel/time.c b/arch/sh/kernel/time.c
index c8db6ca4f9d1..8acd70bffe76 100644
--- a/arch/sh/kernel/time.c
+++ b/arch/sh/kernel/time.c
@@ -29,11 +29,11 @@ EXPORT_SYMBOL(rtc_lock);
29/* XXX: Can we initialize this in a routine somewhere? Dreamcast doesn't want 29/* XXX: Can we initialize this in a routine somewhere? Dreamcast doesn't want
30 * these routines anywhere... */ 30 * these routines anywhere... */
31#ifdef CONFIG_SH_RTC 31#ifdef CONFIG_SH_RTC
32void (*rtc_get_time)(struct timespec *) = sh_rtc_gettimeofday; 32void (*rtc_sh_get_time)(struct timespec *) = sh_rtc_gettimeofday;
33int (*rtc_set_time)(const time_t) = sh_rtc_settimeofday; 33int (*rtc_sh_set_time)(const time_t) = sh_rtc_settimeofday;
34#else 34#else
35void (*rtc_get_time)(struct timespec *); 35void (*rtc_sh_get_time)(struct timespec *);
36int (*rtc_set_time)(const time_t); 36int (*rtc_sh_set_time)(const time_t);
37#endif 37#endif
38 38
39/* 39/*
@@ -135,7 +135,7 @@ void handle_timer_tick(struct pt_regs *regs)
135 xtime.tv_sec > last_rtc_update + 660 && 135 xtime.tv_sec > last_rtc_update + 660 &&
136 (xtime.tv_nsec / 1000) >= 500000 - ((unsigned) TICK_SIZE) / 2 && 136 (xtime.tv_nsec / 1000) >= 500000 - ((unsigned) TICK_SIZE) / 2 &&
137 (xtime.tv_nsec / 1000) <= 500000 + ((unsigned) TICK_SIZE) / 2) { 137 (xtime.tv_nsec / 1000) <= 500000 + ((unsigned) TICK_SIZE) / 2) {
138 if (rtc_set_time(xtime.tv_sec) == 0) 138 if (rtc_sh_set_time(xtime.tv_sec) == 0)
139 last_rtc_update = xtime.tv_sec; 139 last_rtc_update = xtime.tv_sec;
140 else 140 else
141 /* do it again in 60s */ 141 /* do it again in 60s */
@@ -193,8 +193,8 @@ void __init time_init(void)
193 193
194 clk_init(); 194 clk_init();
195 195
196 if (rtc_get_time) { 196 if (rtc_sh_get_time) {
197 rtc_get_time(&xtime); 197 rtc_sh_get_time(&xtime);
198 } else { 198 } else {
199 xtime.tv_sec = mktime(2000, 1, 1, 0, 0, 0); 199 xtime.tv_sec = mktime(2000, 1, 1, 0, 0, 0);
200 xtime.tv_nsec = 0; 200 xtime.tv_nsec = 0;