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 /sys/kern | |
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 'sys/kern')
-rw-r--r-- | sys/kern/kern_tc.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/sys/kern/kern_tc.c b/sys/kern/kern_tc.c index 16cf1fa70b7..30022930a19 100644 --- a/sys/kern/kern_tc.c +++ b/sys/kern/kern_tc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_tc.c,v 1.81 2022/12/13 17:30:36 cheloha Exp $ */ +/* $OpenBSD: kern_tc.c,v 1.82 2023/02/04 19:19:36 cheloha Exp $ */ /* * Copyright (c) 2000 Poul-Henning Kamp <phk@FreeBSD.org> @@ -56,7 +56,6 @@ dummy_get_timecount(struct timecounter *tc) static struct timecounter dummy_timecounter = { .tc_get_timecount = dummy_get_timecount, - .tc_poll_pps = NULL, .tc_counter_mask = ~0u, .tc_frequency = 1000000, .tc_name = "dummy", @@ -708,19 +707,6 @@ tc_windup(struct bintime *new_boottime, struct bintime *new_offset, th->th_offset = *new_offset; } -#ifdef notyet - /* - * Hardware latching timecounters may not generate interrupts on - * PPS events, so instead we poll them. There is a finite risk that - * the hardware might capture a count which is later than the one we - * got above, and therefore possibly in the next NTP second which might - * have a different rate than the current NTP second. It doesn't - * matter in practice. - */ - if (tho->th_counter->tc_poll_pps) - tho->th_counter->tc_poll_pps(tho->th_counter); -#endif - /* * If changing the boot time or clock adjustment, do so before * NTP processing. |