HomeFreeBSD

ppbus: Set the lock for pps interface, update to latest api

Description

ppbus: Set the lock for pps interface, update to latest api

Since we take a lock when we enter the ioctl, we need to set driver_mtx
in the pps structure so it can be dropped while sleeping during a call
to timepps_fetch() with a non-zero timeout (PPS_CANWAIT feature).

MFC After: 5 days
Sponsored by: Netflix
Reviewed by: ian
Differential Revision: https://reviews.freebsd.org/D31763

(cherry picked from commit c62aa65b2a7a6492e712a69c58a35347aa441a98)

Details

Provenance
impAuthored on Sep 1 2021, 7:37 PM
Reviewer
ian
Differential Revision
D31763: ppbus: Set the lock for pps interface, update to latest api
Parents
rGc91cdb006e6c: grep: fix combination of quiet and count flag
Branches
Unknown
Tags
Unknown