timekeeping: Increase granularity of read_persistent_clock()
[safe/jmp/linux-2.6] / arch / mips / lemote / lm2e / setup.c
index ebd6cea..24b355d 100644 (file)
@@ -54,9 +54,10 @@ 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 = mc146818_get_cmos_time();
+       ts->tv_nsec = 0;
 }
 
 void (*__wbflush)(void);