Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Fix nanosecond/microsecond botch in PPSAPI:
details: https://anonhg.NetBSD.org/src/rev/678b7863ccab
branches: trunk
changeset: 477193:678b7863ccab
user: jonathan <jonathan%NetBSD.org@localhost>
date: Fri Oct 15 06:16:15 1999 +0000
description:
Fix nanosecond/microsecond botch in PPSAPI:
remove bogus TIMESPEC_TO_TIMEVAL() after applying any {assert,clear} offset.
diffstat:
sys/dev/ic/com.c | 4 +---
sys/dev/ic/z8530tty.c | 6 +-----
2 files changed, 2 insertions(+), 8 deletions(-)
diffs (52 lines):
diff -r f9ecb47a393a -r 678b7863ccab sys/dev/ic/com.c
--- a/sys/dev/ic/com.c Fri Oct 15 06:07:17 1999 +0000
+++ b/sys/dev/ic/com.c Fri Oct 15 06:16:15 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: com.c,v 1.161 1999/04/19 19:27:31 ross Exp $ */
+/* $NetBSD: com.c,v 1.162 1999/10/15 06:16:15 jonathan Exp $ */
/*-
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -2032,7 +2032,6 @@
timespecadd(&sc->ppsinfo.assert_timestamp,
&sc->ppsparam.assert_offset,
&sc->ppsinfo.assert_timestamp);
- TIMESPEC_TO_TIMEVAL(&tv, &sc->ppsinfo.assert_timestamp);
}
#ifdef PPS_SYNC
@@ -2053,7 +2052,6 @@
timespecadd(&sc->ppsinfo.clear_timestamp,
&sc->ppsparam.clear_offset,
&sc->ppsinfo.clear_timestamp);
- TIMESPEC_TO_TIMEVAL(&tv, &sc->ppsinfo.clear_timestamp);
}
#ifdef PPS_SYNC
diff -r f9ecb47a393a -r 678b7863ccab sys/dev/ic/z8530tty.c
--- a/sys/dev/ic/z8530tty.c Fri Oct 15 06:07:17 1999 +0000
+++ b/sys/dev/ic/z8530tty.c Fri Oct 15 06:16:15 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: z8530tty.c,v 1.60 1999/04/22 20:37:37 pk Exp $ */
+/* $NetBSD: z8530tty.c,v 1.61 1999/10/15 06:16:16 jonathan Exp $ */
/*-
* Copyright (c) 1993, 1994, 1995, 1996, 1997, 1998, 1999
@@ -1487,8 +1487,6 @@
timespecadd(&zst->ppsinfo.assert_timestamp,
&zst->ppsparam.assert_offset,
&zst->ppsinfo.assert_timestamp);
- TIMESPEC_TO_TIMEVAL(&tv,
- &zst->ppsinfo.assert_timestamp);
}
#ifdef PPS_SYNC
@@ -1507,8 +1505,6 @@
timespecadd(&zst->ppsinfo.clear_timestamp,
&zst->ppsparam.clear_offset,
&zst->ppsinfo.clear_timestamp);
- TIMESPEC_TO_TIMEVAL(&tv,
- &zst->ppsinfo.clear_timestamp);
}
#ifdef PPS_SYNC
Home |
Main Index |
Thread Index |
Old Index