Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux...
[deliverable/linux.git] / arch / x86 / kernel / rtc.c
index 5d465b207e72c3bfae75b29f6d0e1dcb3365e6b4..bf67dcb4a44ce77d02a63eb3c00824f46c0b4a63 100644 (file)
@@ -178,7 +178,7 @@ static int set_rtc_mmss(unsigned long nowtime)
 }
 
 /* not static: needed by APM */
-unsigned long read_persistent_clock(void)
+void read_persistent_clock(struct timespec *ts)
 {
        unsigned long retval, flags;
 
@@ -186,7 +186,8 @@ unsigned long read_persistent_clock(void)
        retval = get_wallclock();
        spin_unlock_irqrestore(&rtc_lock, flags);
 
-       return retval;
+       ts->tv_sec = retval;
+       ts->tv_nsec = 0;
 }
 
 int update_persistent_clock(struct timespec now)
This page took 0.025915 seconds and 5 git commands to generate.