aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/time/timekeeping.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c
index 3abf53418b67..7488f0b97dee 100644
--- a/kernel/time/timekeeping.c
+++ b/kernel/time/timekeeping.c
@@ -610,6 +610,7 @@ void timekeeping_set_tai_offset(s32 tai_offset)
610 raw_spin_lock_irqsave(&timekeeper_lock, flags); 610 raw_spin_lock_irqsave(&timekeeper_lock, flags);
611 write_seqcount_begin(&timekeeper_seq); 611 write_seqcount_begin(&timekeeper_seq);
612 __timekeeping_set_tai_offset(tk, tai_offset); 612 __timekeeping_set_tai_offset(tk, tai_offset);
613 timekeeping_update(tk, TK_MIRROR | TK_CLOCK_WAS_SET);
613 write_seqcount_end(&timekeeper_seq); 614 write_seqcount_end(&timekeeper_seq);
614 raw_spin_unlock_irqrestore(&timekeeper_lock, flags); 615 raw_spin_unlock_irqrestore(&timekeeper_lock, flags);
615 clock_was_set(); 616 clock_was_set();
@@ -1698,7 +1699,7 @@ int do_adjtimex(struct timex *txc)
1698 1699
1699 if (tai != orig_tai) { 1700 if (tai != orig_tai) {
1700 __timekeeping_set_tai_offset(tk, tai); 1701 __timekeeping_set_tai_offset(tk, tai);
1701 update_pvclock_gtod(tk, true); 1702 timekeeping_update(tk, TK_MIRROR | TK_CLOCK_WAS_SET);
1702 clock_was_set_delayed(); 1703 clock_was_set_delayed();
1703 } 1704 }
1704 write_seqcount_end(&timekeeper_seq); 1705 write_seqcount_end(&timekeeper_seq);