diff options
author | phk <phk@FreeBSD.org> | 2002-04-26 21:22:02 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-04-26 21:22:02 +0000 |
commit | 47e5a75efe42b9d1926080e0a6d1787413891b8d (patch) | |
tree | 3ae16e4446e4af4b2cb736227875b4de74db75df /sys/pci | |
parent | 4a087f78c836f5796228a47aa91942f1fa92d7d5 (diff) | |
download | FreeBSD-src-47e5a75efe42b9d1926080e0a6d1787413891b8d.zip FreeBSD-src-47e5a75efe42b9d1926080e0a6d1787413891b8d.tar.gz |
Redo the pps bit to avoid digging into the private bits of the timecounter.
Diffstat (limited to 'sys/pci')
-rw-r--r-- | sys/pci/xrpu.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/pci/xrpu.c b/sys/pci/xrpu.c index 6a2f13c..dc21896 100644 --- a/sys/pci/xrpu.c +++ b/sys/pci/xrpu.c @@ -94,26 +94,24 @@ xrpu_poll_pps(struct timecounter *tc) for (i = 0; i < XRPU_MAX_PPS; i++) { if (sc->assert[i]) { - sc->pps[i].capgen = tc->tc_generation; + pps_capture(&sc->pps[i]); ppscount = *(sc->assert[i]) & tc->tc_counter_mask; j = 0; do { count1 = ppscount; ppscount = *(sc->assert[i]) & tc->tc_counter_mask; } while (ppscount != count1 && ++j < 5); - sc->pps[i].captc = tc; sc->pps[i].capcount = ppscount; pps_event(&sc->pps[i], PPS_CAPTUREASSERT); } if (sc->clear[i]) { - sc->pps[i].capgen = tc->tc_generation; + pps_capture(&sc->pps[i]); j = 0; ppscount = *(sc->clear[i]) & tc->tc_counter_mask; do { count1 = ppscount; ppscount = *(sc->clear[i]) & tc->tc_counter_mask; } while (ppscount != count1 && ++j < 5); - sc->pps[i].captc = tc; sc->pps[i].capcount = ppscount; pps_event(&sc->pps[i], PPS_CAPTURECLEAR); } |