Page MenuHomeFreeBSD

pps: Simplify capture and event processing
Needs ReviewPublic

Authored by sebastian.huber_embedded-brains.de on Jul 26 2022, 8:14 AM.
Tags
None
Referenced Files
F171517261: D35930.id.diff
Fri, Sep 11, 1:44 PM
Unknown Object (File)
Tue, Sep 8, 10:39 PM
Unknown Object (File)
Tue, Sep 8, 4:02 AM
Unknown Object (File)
Sun, Sep 6, 11:22 PM
Unknown Object (File)
Sun, Sep 6, 2:07 PM
Unknown Object (File)
Sat, Sep 5, 7:32 PM
Unknown Object (File)
Thu, Sep 3, 7:15 AM
Unknown Object (File)
Tue, Sep 1, 12:47 PM

Details

Reviewers
phk
gnn
delphij
Summary

Use local variables for the captured timehand and timecounter in pps_event().
This fixes a potential issue in the nsec preparation for hardpps(). Here the
timecounter was accessed through the captured timehand after the generation was
checked.

Make a snapshot of the relevent timehand values early in pps_event(). Check
the timehand generation only once during the capture and event processing. Use
atomic_thread_fence_acq() similar to the other readers.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 46577
Build 43466: arc lint + arc unit