Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37679
b: refs/heads/master
c: 97eebe1
h: refs/heads/master
i:
  37677: 6a088e1
  37675: e788bee
  37671: f53a131
  37663: 8894c7b
v: v3
  • Loading branch information
Roman Zippel authored and Linus Torvalds committed Oct 1, 2006
1 parent 34fc75c commit 1591729
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 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: 8f807f8d2137ba728d22820103131038639b68a9
refs/heads/master: 97eebe138caaf78354b1fad233e63bafdcc4fd54
1 change: 0 additions & 1 deletion trunk/include/linux/timex.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ extern int time_state; /* clock status */
extern int time_status; /* clock synchronization status bits */
extern long time_offset; /* time adjustment (us) */
extern long time_constant; /* pll time constant */
extern long time_tolerance; /* frequency tolerance (ppm) */
extern long time_precision; /* clock precision (us) */
extern long time_maxerror; /* maximum error */
extern long time_esterror; /* estimated error */
Expand Down
9 changes: 4 additions & 5 deletions trunk/kernel/time/ntp.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ int time_state = TIME_OK; /* clock synchronization status */
int time_status = STA_UNSYNC; /* clock status bits */
long time_offset; /* time adjustment (ns) */
long time_constant = 2; /* pll time constant */
long time_tolerance = MAXFREQ; /* frequency tolerance (ppm) */
long time_precision = 1; /* clock precision (us) */
long time_maxerror = NTP_PHASE_LIMIT; /* maximum error (us) */
long time_esterror = NTP_PHASE_LIMIT; /* estimated error (us) */
Expand Down Expand Up @@ -87,7 +86,7 @@ void second_overflow(void)
long time_adj;

/* Bump the maxerror field */
time_maxerror += time_tolerance >> SHIFT_USEC;
time_maxerror += MAXFREQ >> SHIFT_USEC;
if (time_maxerror > NTP_PHASE_LIMIT) {
time_maxerror = NTP_PHASE_LIMIT;
time_status |= STA_UNSYNC;
Expand Down Expand Up @@ -313,8 +312,8 @@ int do_adjtimex(struct timex *txc)
} else /* calibration interval too long (p. 12) */
result = TIME_ERROR;
}
time_freq = min(time_freq, time_tolerance);
time_freq = max(time_freq, -time_tolerance);
time_freq = min(time_freq, MAXFREQ);
time_freq = max(time_freq, -MAXFREQ);
time_offset = (time_offset * NSEC_PER_USEC / HZ) << SHIFT_UPDATE;
} /* STA_PLL */
} /* txc->modes & ADJ_OFFSET */
Expand All @@ -337,7 +336,7 @@ leave: if ((time_status & (STA_UNSYNC|STA_CLOCKERR)) != 0)
txc->status = time_status;
txc->constant = time_constant;
txc->precision = time_precision;
txc->tolerance = time_tolerance;
txc->tolerance = MAXFREQ;
txc->tick = tick_usec;

/* PPS is not implemented, so these are zero */
Expand Down

0 comments on commit 1591729

Please sign in to comment.