diff options
author | Scott Soule Cheloha <cheloha@cvs.openbsd.org> | 2023-02-04 19:19:38 +0000 |
---|---|---|
committer | Scott Soule Cheloha <cheloha@cvs.openbsd.org> | 2023-02-04 19:19:38 +0000 |
commit | 5d83a62e34dc252e5f4dc8b16e11a4602c929dc8 (patch) | |
tree | 0b5b760d505f69fb36b77a3e939a1599d80cc3f5 /share | |
parent | d0288629176c1f44b860fc07b99dd46bde24baf6 (diff) |
timecounting: remove incomplete PPS support
The timecounting code has had stubs for pulse-per-second (PPS) polling
since it was imported in 2004. At this point it seems unlikely that
anyone is going to finish adding PPS support, so let's remove the stubs:
- Delete the dead tc_poll_pps() call from tc_windup().
- Remove all tc_poll_pps symbols from the kernel.
Link: https://marc.info/?l=openbsd-tech&m=167519035723210&w=2
ok miod@
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man9/tc_init.9 | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/share/man/man9/tc_init.9 b/share/man/man9/tc_init.9 index 22140930346..b04275cdc33 100644 --- a/share/man/man9/tc_init.9 +++ b/share/man/man9/tc_init.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: tc_init.9,v 1.10 2023/01/17 10:10:11 jsg Exp $ +.\" $OpenBSD: tc_init.9,v 1.11 2023/02/04 19:19:36 cheloha Exp $ .\" .\" Copyright (c) 2004 Alexander Yurchenko <grange@openbsd.org> .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: January 17 2023 $ +.Dd $Mdocdate: February 4 2023 $ .Dt TC_INIT 9 .Os .Sh NAME @@ -46,7 +46,6 @@ structure: .Bd -literal -offset indent struct timecounter { timecounter_get_t *tc_get_timecount; - timecounter_pps_t *tc_poll_pps; u_int tc_counter_mask; u_int64_t tc_frequency; char *tc_name; @@ -64,12 +63,6 @@ structure are described below. This function reads the counter. It is not required to mask any unimplemented bits out, as long as they are constant. -.It Ft void Fn (*tc_poll_pps) "struct timecounter *" -This function is optional and can be set to NULL. -It will be called whenever the timecounter is rewound, and is intended -to check for PPS events. -Normal hardware does not need it but timecounters which latch PPS in -hardware do. .It Va tc_counter_mask This mask should mask off any unimplemented bits. .It Va tc_frequency |