]> www.infradead.org Git - users/jedix/linux-maple.git/commit
timekeeping: Provide timekeeping_restore_shadow()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 9 Oct 2024 08:29:08 +0000 (10:29 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 25 Oct 2024 17:49:14 +0000 (19:49 +0200)
commit97e53792538dd8993172e231f09dadee57f66d69
tree8f1d2946e6410b11f86791252eb72ef3fefb3d1f
parent6b1ef640f4c48663777972ab0953a3eb6355ef85
timekeeping: Provide timekeeping_restore_shadow()

Functions which operate on the real timekeeper, e.g. do_settimeofday(),
have error conditions. If they are hit a full timekeeping update is still
required because the already committed operations modified the timekeeper.

When switching these functions to operate on the shadow timekeeper then the
full update can be avoided in the error case, but the modified shadow
timekeeper has to be restored.

Provide a helper function for that.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Anna-Maria Behnsen <anna-maria@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: John Stultz <jstultz@google.com>
Link: https://lore.kernel.org/all/20241009-devel-anna-maria-b4-timers-ptp-timekeeping-v2-15-554456a44a15@linutronix.de
kernel/time/timekeeping.c