Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135753
b: refs/heads/master
c: 10dd31a
h: refs/heads/master
i:
  135751: 1793d98
v: v3
  • Loading branch information
Ingo Molnar committed Feb 25, 2009
1 parent 21e298c commit 087c248
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c7986acba211e8285e14c9603fb89e6f4ea0b9f8
refs/heads/master: 10dd31a7a17254d6ba793305fc590455393e610e
9 changes: 8 additions & 1 deletion trunk/kernel/time/ntp.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ static void ntp_update_offset(long offset)
* and in which mode (PLL or FLL).
*/
secs = xtime.tv_sec - time_reftime;
if (unlikely(time_status & STA_FREQHOLD || time_reftime == 0))
if (unlikely(time_status & STA_FREQHOLD))
secs = 0;

time_reftime = xtime.tv_sec;
Expand Down Expand Up @@ -394,6 +394,13 @@ int do_adjtimex(struct timex *txc)
}
/* only set allowed bits */
time_status &= STA_RONLY;
/*
* If we turn on PLL adjustments then reset the
* reference time to current time.
*/
if (!(time_status & STA_PLL) && (txc->status & STA_PLL))
time_reftime = xtime.tv_sec;

time_status |= txc->status & ~STA_RONLY;

switch (time_state) {
Expand Down

0 comments on commit 087c248

Please sign in to comment.