]> www.infradead.org Git - users/dwmw2/linux.git/commit
timekeeping: Move shadow_timekeeper into tk_core
authorThomas Gleixner <tglx@linutronix.de>
Wed, 9 Oct 2024 08:29:00 +0000 (10:29 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 25 Oct 2024 17:49:13 +0000 (19:49 +0200)
commit20c7b582e88b8a72832637cd1754e5622aa8a92d
tree7f4fac66e8db925b0a915ea95acb12909ffe9707
parent6860d28ccb2390b4eeda32ab2ce7eb10f71921e1
timekeeping: Move shadow_timekeeper into tk_core

tk_core requires shadow_timekeeper to allow timekeeping_advance() updating
without holding the timekeeper sequence count write locked. This allows the
readers to make progress up to the actual update where the shadow
timekeeper is copied over to the real timekeeper.

As long as there is only a single timekeeper, having them separate is
fine. But when the timekeeper infrastructure will be reused for per ptp
clock timekeepers, shadow_timekeeper needs to be part of tk_core.

No functional change.

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-7-554456a44a15@linutronix.de
kernel/time/timekeeping.c