summaryrefslogtreecommitdiffstats
path: root/kernel/time/timekeeping.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2014-07-16 23:04:09 +0200
committerJohn Stultz <john.stultz@linaro.org>2014-07-23 19:17:57 +0200
commitf111adfdd7ff7d9fe54b6efa440b80824984749c (patch)
tree744adc1270ec2fc2f9fa8c26daff1ad7e0614126 /kernel/time/timekeeping.c
parenttimekeeping: Cache optimize struct timekeeper (diff)
downloadlinux-f111adfdd7ff7d9fe54b6efa440b80824984749c.tar.xz
linux-f111adfdd7ff7d9fe54b6efa440b80824984749c.zip
timekeeping: Use timekeeping_update() instead of memcpy()
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>
Diffstat (limited to 'kernel/time/timekeeping.c')
-rw-r--r--kernel/time/timekeeping.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c
index 7ca150ad387d..bfe3ea09afc9 100644
--- a/kernel/time/timekeeping.c
+++ b/kernel/time/timekeeping.c
@@ -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);