summaryrefslogtreecommitdiffstats
path: root/sys/pci/xrpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pci/xrpu.c')
-rw-r--r--sys/pci/xrpu.c6
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);
}
OpenPOWER on IntegriCloud