Re: [PATCH 06/21] ntp: Read reference time only once

From: John Stultz
Date: Wed Sep 11 2024 - 16:01:11 EST


On Wed, Sep 11, 2024 at 6:18 AM Anna-Maria Behnsen
<anna-maria@xxxxxxxxxxxxx> wrote:
>
> From: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
>
> The reference time is required twice in ntp_update_offset(). It will not
> change in the meantime as the calling code holds the timekeeper lock. Read
> it only once and store it into a local variable.
>
> Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> Signed-off-by: Anna-Maria Behnsen <anna-maria@xxxxxxxxxxxxx>
> ---

Nice!
Acked-by: John Stultz <jstultz@xxxxxxxxxx>

thanks
-john