]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
timekeeping/auxclock: Consistently use raw timekeeper for tk_setup_internals()
authorThomas Weißschuh (Schneider Electric) <thomas.weissschuh@linutronix.de>
Wed, 11 Mar 2026 10:15:13 +0000 (11:15 +0100)
committerThomas Gleixner <tglx@kernel.org>
Thu, 12 Mar 2026 11:15:54 +0000 (12:15 +0100)
In aux_clock_enable() the clocksource from tkr_raw is used to call
tk_setup_internals(). Do the same in tk_aux_update_clocksource().  While
the clocksources will be the same in any case, this is less confusing.

Signed-off-by: Thomas Weißschuh (Schneider Electric) <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260311-hrtimer-cleanups-v1-4-095357392669@linutronix.de
kernel/time/timekeeping.c

index 5153218df29f54fdd294c217a908d485f5df60d2..46b77c3deb95655dfd32f12ac799a19b7abbd3c9 100644 (file)
@@ -2985,7 +2985,7 @@ static void tk_aux_update_clocksource(void)
                        continue;
 
                timekeeping_forward_now(tks);
-               tk_setup_internals(tks, tk_core.timekeeper.tkr_mono.clock);
+               tk_setup_internals(tks, tk_core.timekeeper.tkr_raw.clock);
                timekeeping_update_from_shadow(tkd, TK_UPDATE_ALL);
        }
 }