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
Unknown Object (File)
Nov 11 2024, 9:46 PM
Unknown Object (File)
Oct 28 2024, 3:18 PM
Unknown Object (File)
Oct 20 2024, 10:26 PM
Unknown Object (File)
Oct 20 2024, 10:26 PM
Unknown Object (File)
Oct 18 2024, 2:09 AM
Unknown Object (File)
Oct 17 2024, 11:27 PM
Unknown Object (File)
Oct 2 2024, 4:21 PM
Unknown Object (File)
Sep 22 2024, 5:08 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