Re: [patch V2 06/26] ntp: Add support for auxiliary timekeepers

From: Thomas Weißschuh
Date: Fri Jun 13 2025 - 02:32:49 EST


On Mon, May 19, 2025 at 10:33:21AM +0200, Thomas Gleixner wrote:
> If auxiliary clocks are enabled, provide an array of NTP data so that the
> auxiliary timekeepers can be steered independently of the core timekeeper.
>
> Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> ---
> kernel/time/ntp.c | 41 ++++++++++++++++++++++-------------------
> 1 file changed, 22 insertions(+), 19 deletions(-)

<snip>

> void __init ntp_init(void)
> {
> - ntp_clear();
> + for (int id = 0; id < TIMEKEEPERS_MAX; id++)
> + __ntp_clear(tk_ntp_data + id);

For consistency with the rest of the code:

__ntp_clear(&tk_ntp_data[id]);

> ntp_init_cmos_sync();
> }
>