time: apply NTP frequency/tick changes immediately, fix
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 6 lines · John Stultz
Author: John Stultz <[email protected]> AuthorDate: Thu, 26 Feb 2009 09:46:14 -0800 Commit: Ingo Molnar <[email protected]> CommitDate: Thu, 26 Feb 2009 18:55:36 +0100time: apply NTP frequency/tick changes immediately, fix
Sorry, the commit name isn't quite right there. I should have added the patch name explicitly. This patch was a fix to the following patch in -tip:
time: ntp: fix bug in ntp_update_offset() & do_adjtimex()
thanks
-john
Quoted 36 lines
The
time_statusconditional was accidentally placed right after we clear the checkedtime_statusbits, which causes us to take the conditional every time through. This fixes it by moving the conditional to before we clear thetime_statusbits.Signed-off-by John Stultz <[email protected]>Cc Clark Williams <[email protected]>Signed-off-by Ingo Molnar <[email protected]>--- kernel/time/ntp.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)kernel/time/ntp.c +2
-2@@ -365,8 +365,6 @@ static inline void process_adj_status(struct timex *txc, struct timespec *ts) time_state =TIME_OK ; time_status =STA_UNSYNC ; } -/* only set allowed bits */ - time_status &=STA_RONLY ;/* * If we turn on PLL adjustments then reset the @@ -375,6 +373,8 @@ static inline void process_adj_status(struct timex *txc, struct timespec *ts)if (!(time_status &STA_PLL ) && (txc->status &STA_PLL )) time_reftime = xtime.tv_sec; +/* only set allowed bits */ + time_status &=STA_RONLY ; time_status |= txc->status & ~STA_RONLY ;switch (time_state) {
Quoted 6 lines · John Stultz
Quoted 5 lines · John Stultz
Author: John Stultz <[email protected]> AuthorDate: Thu, 26 Feb 2009 09:46:14 -0800 Commit: Ingo Molnar <[email protected]> CommitDate: Thu, 26 Feb 2009 18:55:36 +0100
Quoted 7 lines
Quoted 1 line
time: apply NTP frequency/tick changes immediately, fix
Sorry, the commit name isn't quite right there. I should have added the patch name explicitly. This patch was a fix to the following patch in -tip:
time: ntp: fix bug in
ntp_update_offset()&do_adjtimex()
ok, i fixed the title - thanks!
Ingo