]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ppbus: Set the lock for pps interface, update to latest api
authorWarner Losh <imp@FreeBSD.org>
Wed, 1 Sep 2021 19:37:27 +0000 (13:37 -0600)
committerWarner Losh <imp@FreeBSD.org>
Wed, 1 Sep 2021 20:12:53 +0000 (14:12 -0600)
commitc62aa65b2a7a6492e712a69c58a35347aa441a98
tree63d194e6eb553293c37373d159d06d0c09de475d
parentf3fd88507489f6b80402ab7a0fb195ca9c708334
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
sys/dev/ppbus/ppb_base.c
sys/dev/ppbus/ppbconf.h
sys/dev/ppbus/pps.c