summaryrefslogtreecommitdiffstats
path: root/arch/mips/loongson/common/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/loongson/common/time.c')
-rw-r--r--arch/mips/loongson/common/time.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/mips/loongson/common/time.c b/arch/mips/loongson/common/time.c
index b13d1717465..0edbef32b86 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)
mips_hpt_frequency = cpu_clock_freq / 2;
}
-unsigned long read_persistent_clock(void)
+void read_persistent_clock(struct timespec *ts)
{
- return mc146818_get_cmos_time();
+ ts->tv_sec = return mc146818_get_cmos_time();
+ ts->tv_nsec = 0;
}