diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c index 90ed5db..53be796 100644 --- a/kernel/time/timekeeping.c +++ b/kernel/time/timekeeping.c @@ -580,6 +580,9 @@ static void timekeeping_update(struct timekeeper *tk, unsigned int action) ntp_clear(); } + if (action & TK_CLOCK_WAS_SET) + tk->clock_was_set_seq++; + tk_update_ktime_data(tk); update_vsyscall(tk); @@ -591,9 +594,6 @@ static void timekeeping_update(struct timekeeper *tk, unsigned int action) update_fast_timekeeper(&tk->tkr_mono, &tk_fast_mono); update_fast_timekeeper(&tk->tkr_raw, &tk_fast_raw); - - if (action & TK_CLOCK_WAS_SET) - tk->clock_was_set_seq++; } /**