From 034f64c0dabeda560a378a9a63bf50562a0dbf19 Mon Sep 17 00:00:00 2001 From: jonathan Date: Mon, 1 Sep 1997 08:05:05 +0000 Subject: [PATCH] Set fixtick to (1000000 % hz) when NTP is configured. --- sys/arch/pmax/pmax/clock.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sys/arch/pmax/pmax/clock.c b/sys/arch/pmax/pmax/clock.c index 12ed264ca048..e4fc66110fc9 100644 --- a/sys/arch/pmax/pmax/clock.c +++ b/sys/arch/pmax/pmax/clock.c @@ -1,4 +1,4 @@ -/* $NetBSD: clock.c,v 1.21 1997/07/22 04:49:58 jonathan Exp $ */ +/* $NetBSD: clock.c,v 1.22 1997/09/01 08:05:05 jonathan Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -44,7 +44,7 @@ #include /* RCS ID & Copyright macro defns */ -__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.21 1997/07/22 04:49:58 jonathan Exp $"); +__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.22 1997/09/01 08:05:05 jonathan Exp $"); #include #include @@ -66,6 +66,9 @@ __KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.21 1997/07/22 04:49:58 jonathan Exp $"); struct device *clockdev; const struct clockfns *clockfns; int clockinitted; +#ifdef NTP +extern int fixtick; +#endif void clockattach(dev, fns) @@ -115,6 +118,9 @@ cpu_initclocks() hz = CLOCK_RATE; /* 256 Hz clock */ tick = 1000000 / hz; /* number of microseconds between interrupts */ tickfix = 1000000 - (hz * tick); +#ifdef NTP + fixtick = tickfix; +#endif if (tickfix) { int ftp;