|
@@ -610,6 +610,7 @@ void timekeeping_set_tai_offset(s32 tai_offset)
|
|
raw_spin_lock_irqsave(&timekeeper_lock, flags);
|
|
raw_spin_lock_irqsave(&timekeeper_lock, flags);
|
|
write_seqcount_begin(&timekeeper_seq);
|
|
write_seqcount_begin(&timekeeper_seq);
|
|
__timekeeping_set_tai_offset(tk, tai_offset);
|
|
__timekeeping_set_tai_offset(tk, tai_offset);
|
|
|
|
+ timekeeping_update(tk, TK_MIRROR | TK_CLOCK_WAS_SET);
|
|
write_seqcount_end(&timekeeper_seq);
|
|
write_seqcount_end(&timekeeper_seq);
|
|
raw_spin_unlock_irqrestore(&timekeeper_lock, flags);
|
|
raw_spin_unlock_irqrestore(&timekeeper_lock, flags);
|
|
clock_was_set();
|
|
clock_was_set();
|
|
@@ -1698,7 +1699,7 @@ int do_adjtimex(struct timex *txc)
|
|
|
|
|
|
if (tai != orig_tai) {
|
|
if (tai != orig_tai) {
|
|
__timekeeping_set_tai_offset(tk, tai);
|
|
__timekeeping_set_tai_offset(tk, tai);
|
|
- update_pvclock_gtod(tk, true);
|
|
|
|
|
|
+ timekeeping_update(tk, TK_MIRROR | TK_CLOCK_WAS_SET);
|
|
clock_was_set_delayed();
|
|
clock_was_set_delayed();
|
|
}
|
|
}
|
|
write_seqcount_end(&timekeeper_seq);
|
|
write_seqcount_end(&timekeeper_seq);
|