Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

timekeeping: Remove TK_MIRROR timekeeping_update() action

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 <anna-maria@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: John Stultz <jstultz@google.com>
Link: https://lore.kernel.org/all/20241009-devel-anna-maria-b4-timers-ptp-timekeeping-v2-24-554456a44a15@linutronix.de

authored by

Anna-Maria Behnsen and committed by
Thomas Gleixner
0026766d ae455cb7

+1 -9
+1 -9
kernel/time/timekeeping.c
··· 30 30 #include "timekeeping_internal.h" 31 31 32 32 #define TK_CLEAR_NTP (1 << 0) 33 - #define TK_MIRROR (1 << 1) 34 - #define TK_CLOCK_WAS_SET (1 << 2) 33 + #define TK_CLOCK_WAS_SET (1 << 1) 35 34 36 35 #define TK_UPDATE_ALL (TK_CLEAR_NTP | TK_CLOCK_WAS_SET) 37 36 ··· 815 816 816 817 if (action & TK_CLOCK_WAS_SET) 817 818 tk->clock_was_set_seq++; 818 - /* 819 - * The mirroring of the data to the shadow-timekeeper needs 820 - * to happen last here to ensure we don't over-write the 821 - * timekeeper structure on the next update with stale data 822 - */ 823 - if (action & TK_MIRROR) 824 - timekeeping_restore_shadow(tkd); 825 819 } 826 820 827 821 static void timekeeping_update_from_shadow(struct tk_data *tkd, unsigned int action)