diff options
| author | 2006-01-13 22:02:37 +0000 | |
|---|---|---|
| committer | 2006-01-13 22:02:37 +0000 | |
| commit | 308cb777af00b675376e3736131d615573bb0a2c (patch) | |
| tree | 7a714587f7549902e7f1e993aad584992bea8be5 /sys/kern/kern_clock.c | |
| parent | list other maxds models (diff) | |
| download | wireguard-openbsd-308cb777af00b675376e3736131d615573bb0a2c.tar.xz wireguard-openbsd-308cb777af00b675376e3736131d615573bb0a2c.zip | |
auto adjusting adjtime. be more responsive to large clock deltas,
and attempt to compensate for incorrect clocks by adjusting ticks
slowly. ok deraadt
Diffstat (limited to 'sys/kern/kern_clock.c')
| -rw-r--r-- | sys/kern/kern_clock.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c index 9f494c8bdf3..b6256ec42ca 100644 --- a/sys/kern/kern_clock.c +++ b/sys/kern/kern_clock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_clock.c,v 1.56 2006/01/03 18:22:31 miod Exp $ */ +/* $OpenBSD: kern_clock.c,v 1.57 2006/01/13 22:02:37 tedu Exp $ */ /* $NetBSD: kern_clock.c,v 1.34 1996/06/09 04:51:03 briggs Exp $ */ /*- @@ -220,6 +220,7 @@ hardclock(struct clockframe *frame) struct proc *p; #ifndef __HAVE_TIMECOUNTER int delta; + extern int tick_skew; extern int tickdelta; extern long timedelta; #endif @@ -272,7 +273,7 @@ hardclock(struct clockframe *frame) * ``tickdelta'' may also be added in. */ - delta = tick; + delta = tick + tick_skew; if (tickfix) { tickfixcnt += tickfix; |
