]> git.ipfire.org Git - thirdparty/linux.git/commit
timekeeping: Make __timekeeping_advance() reusable
authorAnna-Maria Behnsen <anna-maria@linutronix.de>
Mon, 19 May 2025 08:33:25 +0000 (10:33 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 19 Jun 2025 12:28:23 +0000 (14:28 +0200)
commit926ad475169f5b24868438e4bff61ec6a73efd19
tree15e9e64bcb1edc7b81aa68c254c0dc7d35e90396
parentc7ebfbc440151ae4a66a03b0f879cbece45174c8
timekeeping: Make __timekeeping_advance() reusable

In __timekeeping_advance() the pointer to struct tk_data is hardcoded by the
use of &tk_core. As long as there is only a single timekeeper (tk_core),
this is not a problem. But when __timekeeping_advance() will be reused for
per auxiliary timekeepers, __timekeeping_advance() needs to be generalized.

Add a pointer to struct tk_data as function argument of
__timekeeping_advance() and adapt all call sites.

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