Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/sys/kern pull up rev 1.50 from trunk (requested by somm...



details:   https://anonhg.NetBSD.org/src/rev/04ed84156c7e
branches:  netbsd-1-4
changeset: 469565:04ed84156c7e
user:      cgd <cgd%NetBSD.org@localhost>
date:      Sun Oct 10 23:21:19 1999 +0000

description:
pull up rev 1.50 from trunk (requested by sommerfeld):
  If using kernel NTP PLL, initialize "fixtick" to a reasonable
  approximation of reality if machine-dependent code doesn't.  This
  allows a NetBSD/alpha kernel (where hz=1024) with "options NTP" to
  synch up quite nicely (as opposed to having an frequency error of
  ~560ppm, which is outside the capture range of the PLL).

diffstat:

 sys/kern/kern_clock.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 7ca9d7f2ddef -r 04ed84156c7e sys/kern/kern_clock.c
--- a/sys/kern/kern_clock.c     Sun Oct 10 23:20:40 1999 +0000
+++ b/sys/kern/kern_clock.c     Sun Oct 10 23:21:19 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_clock.c,v 1.47 1999/02/28 18:14:57 ross Exp $     */
+/*     $NetBSD: kern_clock.c,v 1.47.2.1 1999/10/10 23:21:19 cgd Exp $  */
 
 /*-
  * Copyright (c) 1982, 1986, 1991, 1993
@@ -342,6 +342,10 @@
        default:
                panic("weird hz");
        }
+       if (fixtick == 0) {
+               /* give MD code a chance to set this to a better value; but, if it doesn't, we should.. */
+               fixtick = (1000000 - (hz*tick));
+       }
 #endif
 }
 



Home | Main Index | Thread Index | Old Index