diff options
Diffstat (limited to 'arch/mips/loongson')
-rw-r--r-- | arch/mips/loongson/common/time.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/mips/loongson/common/time.c b/arch/mips/loongson/common/time.c index b13d17174654..0edbef32b862 100644 --- a/arch/mips/loongson/common/time.c +++ b/arch/mips/loongson/common/time.c | |||
@@ -21,7 +21,8 @@ void __init plat_time_init(void) | |||
21 | mips_hpt_frequency = cpu_clock_freq / 2; | 21 | mips_hpt_frequency = cpu_clock_freq / 2; |
22 | } | 22 | } |
23 | 23 | ||
24 | unsigned long read_persistent_clock(void) | 24 | void read_persistent_clock(struct timespec *ts) |
25 | { | 25 | { |
26 | return mc146818_get_cmos_time(); | 26 | ts->tv_sec = return mc146818_get_cmos_time(); |
27 | ts->tv_nsec = 0; | ||
27 | } | 28 | } |