]> 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>
Sat, 2 Oct 2021 16:43:21 +0000 (10:43 -0600)
commit0c02dd569c72d9a053199385777ea73b21684a13
treeca3b32c2fc15d153656be404dff1d041de9c3db9
parent970c3982cd6a05efe9b4666a8a7f98670f18f36e
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)
sys/dev/ppbus/ppb_base.c
sys/dev/ppbus/ppbconf.h
sys/dev/ppbus/pps.c