Fix nanosecond/microsecond botch in PPSAPI:
remove bogus TIMESPEC_TO_TIMEVAL() after applying any {assert,clear} offset.
This commit is contained in:
parent
4eee111127
commit
b31080319e
@ -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 @@ comintr(arg)
|
||||
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 @@ comintr(arg)
|
||||
timespecadd(&sc->ppsinfo.clear_timestamp,
|
||||
&sc->ppsparam.clear_offset,
|
||||
&sc->ppsinfo.clear_timestamp);
|
||||
TIMESPEC_TO_TIMEVAL(&tv, &sc->ppsinfo.clear_timestamp);
|
||||
}
|
||||
|
||||
#ifdef PPS_SYNC
|
||||
|
@ -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 @@ zstty_stint(cs, force)
|
||||
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 @@ zstty_stint(cs, force)
|
||||
timespecadd(&zst->ppsinfo.clear_timestamp,
|
||||
&zst->ppsparam.clear_offset,
|
||||
&zst->ppsinfo.clear_timestamp);
|
||||
TIMESPEC_TO_TIMEVAL(&tv,
|
||||
&zst->ppsinfo.clear_timestamp);
|
||||
}
|
||||
|
||||
#ifdef PPS_SYNC
|
||||
|
Loading…
Reference in New Issue
Block a user