diff options
-rw-r--r-- | arch/h8300/kernel/time.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/arch/h8300/kernel/time.c b/arch/h8300/kernel/time.c index 7f2d6cfbb4b6..165005aff9df 100644 --- a/arch/h8300/kernel/time.c +++ b/arch/h8300/kernel/time.c | |||
@@ -41,7 +41,7 @@ void h8300_timer_tick(void) | |||
41 | update_process_times(user_mode(get_irq_regs())); | 41 | update_process_times(user_mode(get_irq_regs())); |
42 | } | 42 | } |
43 | 43 | ||
44 | void __init time_init(void) | 44 | void read_persistent_clock(struct timespec *ts) |
45 | { | 45 | { |
46 | unsigned int year, mon, day, hour, min, sec; | 46 | unsigned int year, mon, day, hour, min, sec; |
47 | 47 | ||
@@ -56,8 +56,12 @@ void __init time_init(void) | |||
56 | #endif | 56 | #endif |
57 | if ((year += 1900) < 1970) | 57 | if ((year += 1900) < 1970) |
58 | year += 100; | 58 | year += 100; |
59 | xtime.tv_sec = mktime(year, mon, day, hour, min, sec); | 59 | ts->tv_sec = mktime(year, mon, day, hour, min, sec); |
60 | xtime.tv_nsec = 0; | 60 | ts->tv_nsec = 0; |
61 | } | ||
62 | |||
63 | void __init time_init(void) | ||
64 | { | ||
61 | 65 | ||
62 | h8300_timer_setup(); | 66 | h8300_timer_setup(); |
63 | } | 67 | } |