[Bug 259036] feature request: add PPS_SYNC to GENERIC

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 10 Oct 2021 06:29:38 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259036

            Bug ID: 259036
           Summary: feature request: add PPS_SYNC to GENERIC
           Product: Base System
           Version: Unspecified
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: john@sanren.ac.za

For those of us using a GPS or other form of PPS signal with ntpd, the only
reason to recompile the kernel is to add the PPS_SYNC option. Other FreeBSD
derived projects like pfsense already have it in by default.

There are only two files affected by this option, kern_ntptime.c and kern_tc.c.
(kern_clock.c also includes opt_ntp.h, but does not use PPS_SYNC.)

It adds very little code. Last time somebody counted, it was about 218 lines.

In kern_tc.c it only adds code to implement the PPS_IOC_KCBIND ioctl and adds
code to pps_event(). Both of these code paths will only be used by people using
PPS.

If one has to select only one architecture, it would be amd64, but the
different arm kernels would also be very useful.

-- 
You are receiving this mail because:
You are the assignee for the bug.