Re: [patch V2 09/26] timekeeping: Make __timekeeping_advance() reusable
From: John Stultz
Date: Thu Jun 12 2025 - 20:23:38 EST
On Mon, May 19, 2025 at 1:33 AM Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote:
>
> From: Anna-Maria Behnsen <anna-maria@xxxxxxxxxxxxx>
>
> 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@xxxxxxxxxxxxx>
> Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Acked-by: John Stultz <jstultz@xxxxxxxxxx>
thanks
-john