Re: [PATCH v2 03/25] timekeeping: Avoid duplicate leap state update

From: John Stultz
Date: Wed Oct 09 2024 - 13:32:11 EST


On Wed, Oct 9, 2024 at 1:29 AM Anna-Maria Behnsen
<anna-maria@xxxxxxxxxxxxx> wrote:
>
> From: Anna-Maria Behnsen <anna-maria@xxxxxxxxxxxxx>
>
> do_adjtimex() invokes tk_update_leap_state() unconditionally even when a
> previous invocation of timekeeping_update() already did that update.
>
> Put it into the else path which is invoked when timekeeping_update() is not
> called.
>
> Signed-off-by: Anna-Maria Behnsen <anna-maria@xxxxxxxxxxxxx>

Could probably use a comment in the code to that effect, but otherwise:

Acked-by: John Stultz <jstultz@xxxxxxxxxx>