aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/time/ntp.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/time/ntp.c')
-rw-r--r--kernel/time/ntp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/time/ntp.c b/kernel/time/ntp.c
index c74eb7d9d854..7fc64375ff43 100644
--- a/kernel/time/ntp.c
+++ b/kernel/time/ntp.c
@@ -365,8 +365,6 @@ static inline void process_adj_status(struct timex *txc, struct timespec *ts)
365 time_state = TIME_OK; 365 time_state = TIME_OK;
366 time_status = STA_UNSYNC; 366 time_status = STA_UNSYNC;
367 } 367 }
368 /* only set allowed bits */
369 time_status &= STA_RONLY;
370 368
371 /* 369 /*
372 * If we turn on PLL adjustments then reset the 370 * 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)
375 if (!(time_status & STA_PLL) && (txc->status & STA_PLL)) 373 if (!(time_status & STA_PLL) && (txc->status & STA_PLL))
376 time_reftime = xtime.tv_sec; 374 time_reftime = xtime.tv_sec;
377 375
376 /* only set allowed bits */
377 time_status &= STA_RONLY;
378 time_status |= txc->status & ~STA_RONLY; 378 time_status |= txc->status & ~STA_RONLY;
379 379
380 switch (time_state) { 380 switch (time_state) {