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
F82180692: D35930.id108529.diff
Fri, Apr 26, 6:05 AM
Unknown Object (File)
Thu, Apr 25, 11:55 PM
Unknown Object (File)
Thu, Apr 25, 1:59 PM
Unknown Object (File)
Mon, Apr 22, 8:12 AM
Unknown Object (File)
Jan 10 2024, 3:40 AM
Unknown Object (File)
Dec 12 2023, 8:56 PM
Unknown Object (File)
Oct 11 2023, 8:34 PM
Unknown Object (File)
Aug 14 2023, 11:21 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