]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
timekeeping: Remove hardcoded access to tk_core
authorThomas Gleixner <tglx@linutronix.de>
Mon, 19 May 2025 08:33:15 +0000 (10:33 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 19 Jun 2025 12:28:22 +0000 (14:28 +0200)
This was overlooked in the initial conversion. Use the provided pointer to
access the shadow timekeeper.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: John Stultz <jstultz@google.com>
Link: https://lore.kernel.org/all/20250519083025.652611452@linutronix.de
kernel/time/timekeeping.c

index a009c91f7b05fcb433073862a1b1a3de0345bffe..2ad78fbdc9ffa3409c1e38a220ccb6e871953dde 100644 (file)
@@ -663,7 +663,7 @@ static void timekeeping_restore_shadow(struct tk_data *tkd)
 
 static void timekeeping_update_from_shadow(struct tk_data *tkd, unsigned int action)
 {
-       struct timekeeper *tk = &tk_core.shadow_timekeeper;
+       struct timekeeper *tk = &tkd->shadow_timekeeper;
 
        lockdep_assert_held(&tkd->lock);