Skip to content

Commit

Permalink
timekeeping: Remove TK_MIRROR timekeeping_update() action
Browse files Browse the repository at this point in the history
All call sites of using TK_MIRROR flag in timekeeping_update() are
gone. The TK_MIRROR dependent code path is therefore dead code.

Remove it along with the TK_MIRROR define.

Signed-off-by: Anna-Maria Behnsen <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Acked-by: John Stultz <[email protected]>
Link: https://lore.kernel.org/all/20241009-devel-anna-maria-b4-timers-ptp-timekeeping-v2-24-554456a44a15@linutronix.de
  • Loading branch information
anna-marialx authored and KAGA-KOKO committed Oct 25, 2024
1 parent ae455cb commit 0026766
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions kernel/time/timekeeping.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
#include "timekeeping_internal.h"

#define TK_CLEAR_NTP (1 << 0)
#define TK_MIRROR (1 << 1)
#define TK_CLOCK_WAS_SET (1 << 2)
#define TK_CLOCK_WAS_SET (1 << 1)

#define TK_UPDATE_ALL (TK_CLEAR_NTP | TK_CLOCK_WAS_SET)

Expand Down Expand Up @@ -816,13 +815,6 @@ static void timekeeping_update(struct tk_data *tkd, struct timekeeper *tk, unsig

if (action & TK_CLOCK_WAS_SET)
tk->clock_was_set_seq++;
/*
* The mirroring of the data to the shadow-timekeeper needs
* to happen last here to ensure we don't over-write the
* timekeeper structure on the next update with stale data
*/
if (action & TK_MIRROR)
timekeeping_restore_shadow(tkd);
}

static void timekeeping_update_from_shadow(struct tk_data *tkd, unsigned int action)
Expand Down

0 comments on commit 0026766

Please sign in to comment.