Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/sys/arch/alpha/alpha pull up rev 1.26 from trunk (reque...
details: https://anonhg.NetBSD.org/src/rev/b47f36207639
branches: netbsd-1-4
changeset: 469566:b47f36207639
user: cgd <cgd%NetBSD.org@localhost>
date: Sun Oct 10 23:21:30 1999 +0000
description:
pull up rev 1.26 from trunk (requested by sommerfeld):
Patch time_precision so we report a realistic NTP "precision"
value to userland.
diffstat:
sys/arch/alpha/alpha/clock.c | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diffs (51 lines):
diff -r 04ed84156c7e -r b47f36207639 sys/arch/alpha/alpha/clock.c
--- a/sys/arch/alpha/alpha/clock.c Sun Oct 10 23:21:19 1999 +0000
+++ b/sys/arch/alpha/alpha/clock.c Sun Oct 10 23:21:30 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: clock.c,v 1.25 1999/03/04 06:46:43 chs Exp $ */
+/* $NetBSD: clock.c,v 1.25.2.1 1999/10/10 23:21:30 cgd Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -44,7 +44,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.25 1999/03/04 06:46:43 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.25.2.1 1999/10/10 23:21:30 cgd Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -60,6 +60,7 @@
#include <dev/dec/clockvar.h>
#include "opt_clock_compat_osf1.h"
+#include "opt_ntp.h"
#define MINYEAR 1998 /* "today" */
#ifdef CLOCK_COMPAT_OSF1
@@ -75,6 +76,10 @@
#define UNIX_YEAR_OFFSET 0
#endif
+#ifdef NTP
+extern long time_precision; /* kern_clock.c; clock resolution in microseconds. */
+#endif
+
struct device *clockdev;
const struct clockfns *clockfns;
int clockinitted;
@@ -131,6 +136,13 @@
tickfix >>= (ftp - 1);
tickfixinterval = hz >> (ftp - 1);
}
+#ifdef NTP
+ /*
+ * Since we don't have a "real" microtime, our actual
+ * precision is limited to the hardclock interrupt rate.
+ */
+ time_precision = tick;
+#endif
/*
* Establish the clock interrupt; it's a special case.
Home |
Main Index |
Thread Index |
Old Index