summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1998-07-04 19:29:15 +0000
committerphk <phk@FreeBSD.org>1998-07-04 19:29:15 +0000
commit1502eaffb37d04a2a82d6efdb9ddedbfdeb64f8d (patch)
treee90040caa72518303d6e0d6a48e4ad94c969fbb2 /sys
parentb2386ab5f609d4fec48277a6ac408b1e901ea91c (diff)
downloadFreeBSD-src-1502eaffb37d04a2a82d6efdb9ddedbfdeb64f8d.zip
FreeBSD-src-1502eaffb37d04a2a82d6efdb9ddedbfdeb64f8d.tar.gz
Hmm, braino in last commit.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_clock.c9
-rw-r--r--sys/kern/kern_tc.c9
2 files changed, 10 insertions, 8 deletions
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c
index 7992995..a01e9ae 100644
--- a/sys/kern/kern_clock.c
+++ b/sys/kern/kern_clock.c
@@ -39,7 +39,7 @@ static volatile int print_tci = 1;
* SUCH DAMAGE.
*
* @(#)kern_clock.c 8.5 (Berkeley) 1/21/94
- * $Id: kern_clock.c,v 1.74 1998/07/02 21:35:02 phk Exp $
+ * $Id: kern_clock.c,v 1.75 1998/07/04 19:12:21 phk Exp $
*/
#include <sys/param.h>
@@ -766,8 +766,9 @@ sync_other_counter(void)
static void
tco_forward(void)
{
- struct timecounter *tc;
+ struct timecounter *tc, *tco;
+ tco = timecounter;
tc = sync_other_counter();
/*
* We may be inducing a tiny error here, the tc_poll_pps() may
@@ -778,8 +779,8 @@ tco_forward(void)
* going to be only a few weenieseconds (as Dave Mills would
* say), so lets just not talk more about it, OK ?
*/
- if (tc->tc_poll_pps)
- tc->tc_poll_pps(tc);
+ if (tco->tc_poll_pps)
+ tco->tc_poll_pps(tco);
if (timedelta != 0) {
tc->tc_offset_nano += (u_int64_t)(tickdelta * 1000) << 32;
timedelta -= tickdelta;
diff --git a/sys/kern/kern_tc.c b/sys/kern/kern_tc.c
index 7992995..a01e9ae 100644
--- a/sys/kern/kern_tc.c
+++ b/sys/kern/kern_tc.c
@@ -39,7 +39,7 @@ static volatile int print_tci = 1;
* SUCH DAMAGE.
*
* @(#)kern_clock.c 8.5 (Berkeley) 1/21/94
- * $Id: kern_clock.c,v 1.74 1998/07/02 21:35:02 phk Exp $
+ * $Id: kern_clock.c,v 1.75 1998/07/04 19:12:21 phk Exp $
*/
#include <sys/param.h>
@@ -766,8 +766,9 @@ sync_other_counter(void)
static void
tco_forward(void)
{
- struct timecounter *tc;
+ struct timecounter *tc, *tco;
+ tco = timecounter;
tc = sync_other_counter();
/*
* We may be inducing a tiny error here, the tc_poll_pps() may
@@ -778,8 +779,8 @@ tco_forward(void)
* going to be only a few weenieseconds (as Dave Mills would
* say), so lets just not talk more about it, OK ?
*/
- if (tc->tc_poll_pps)
- tc->tc_poll_pps(tc);
+ if (tco->tc_poll_pps)
+ tco->tc_poll_pps(tco);
if (timedelta != 0) {
tc->tc_offset_nano += (u_int64_t)(tickdelta * 1000) << 32;
timedelta -= tickdelta;
OpenPOWER on IntegriCloud