Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f111adfd authored by Thomas Gleixner's avatar Thomas Gleixner Committed by John Stultz
Browse files

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: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
parent 3fdb14fd
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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);