aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-mips
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2007-10-11 18:46:09 -0400
committerRalf Baechle <ralf@linux-mips.org>2007-10-11 18:46:09 -0400
commit90b02340dcc6ce00bf22c48f4865915f5989e5e4 (patch)
tree763f07fe0025ac5cd54fa361ec5d77ad76b5547c /include/asm-mips
parent4b550488f894c899aa54dc935c8fee47bca2b7df (diff)
[MIPS] Switch from to_tm to rtc_time_to_tm
This replaces the MIPS-specific to_tm function with the generic rtc_time_to_tm function. The big difference between the two functions is that rtc_time_to_tm uses epoch 70 while to_tm uses 1970, so the result of rtc_time_to_tm needs to be fixed up. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips')
-rw-r--r--include/asm-mips/time.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/include/asm-mips/time.h b/include/asm-mips/time.h
index 74ab33157d69..963507d33f69 100644
--- a/include/asm-mips/time.h
+++ b/include/asm-mips/time.h
@@ -49,13 +49,6 @@ extern void (*mips_timer_ack)(void);
49extern struct clocksource clocksource_mips; 49extern struct clocksource clocksource_mips;
50 50
51/* 51/*
52 * to_tm() converts system time back to (year, mon, day, hour, min, sec).
53 * It is intended to help implement rtc_set_time() functions.
54 * Copied from PPC implementation.
55 */
56extern void to_tm(unsigned long tim, struct rtc_time *tm);
57
58/*
59 * high-level timer interrupt routines. 52 * high-level timer interrupt routines.
60 */ 53 */
61extern irqreturn_t timer_interrupt(int irq, void *dev_id); 54extern irqreturn_t timer_interrupt(int irq, void *dev_id);