]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
timekeeping: Use timekeeping_update() instead of memcpy()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 16 Jul 2014 21:04:09 +0000 (21:04 +0000)
committerJohn Stultz <john.stultz@linaro.org>
Wed, 23 Jul 2014 17:17:57 +0000 (10:17 -0700)
We already have a function which does the right thing, that also makes
sure that the coming ktime_t based cached values are getting updated.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Stultz <john.stultz@linaro.org>
kernel/time/timekeeping.c

index 7ca150ad387d552ade0063d2699adf391ee1664e..bfe3ea09afc90d46d8da13dda9663b3c063cb6cd 100644 (file)
@@ -883,8 +883,7 @@ void __init timekeeping_init(void)
        tmp.tv_nsec = 0;
        tk_set_sleep_time(tk, tmp);
 
-       memcpy(&shadow_timekeeper, &tk_core.timekeeper,
-              sizeof(tk_core.timekeeper));
+       timekeeping_update(tk, TK_MIRROR);
 
        write_seqcount_end(&tk_core.seq);
        raw_spin_unlock_irqrestore(&timekeeper_lock, flags);