When the timecounting code was ported from FreeBSD in 2004 [1], stubs
for pulse-per-second (PPS) polling were brought in but left disabled.
They remain disabled [2]:
1.1 tholo 710:
711: #ifdef notyet
712: /*
713: * Hardware latching timecounters may not
generate interrupts on
714: * PPS events, so instead we poll them. There
is a finite risk that
715: * the hardware might capture a count which is
later than the one we
716: * got above, and therefore possibly in the
next NTP second which might
717: * have a different rate than the current NTP
second. It doesn't
718: * matter in practice.
719: */
720: if (tho->th_counter->tc_poll_pps)
721:
tho->th_counter->tc_poll_pps(tho->th_counter);
722: #endif
It's been almost two decades. I don't expect anyone to finish adding
support, so let's remove the stubs.
This patch gets rid of the tc_poll_pps symbol.
otto: No plans to use this?
ok?
[1] http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/kern/kern_tc.c?annotate=1.1
[2]
http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/kern/kern_tc.c?annotate=1.81
Index: sys/sys/timetc.h
===================================================================
RCS file: /cvs/src/sys/sys/timetc.h,v
retrieving revision 1.13
diff -u -p -r1.13 timetc.h
--- sys/sys/timetc.h 12 Aug 2022 02:20:36 -0000 1.13
+++ sys/sys/timetc.h 31 Jan 2023 18:12:57 -0000
@@ -44,7 +44,6 @@
struct timecounter;
typedef u_int timecounter_get_t(struct timecounter *);
-typedef void timecounter_pps_t(struct timecounter *);
/*
* Locks used to protect struct members in this file:
@@ -59,13 +58,6 @@ struct timecounter {
* This function reads the counter. It is not required to
* mask any unimplemented bits out, as long as they are
* constant.
- */
- timecounter_pps_t *tc_poll_pps; /* [I] */
- /*
- * This function is optional. 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 (like sys/pci/xrpu.c) do.
*/
u_int tc_counter_mask; /* [I] */
/* This mask should mask off any unimplemented bits. */
Index: sys/kern/kern_tc.c
===================================================================
RCS file: /cvs/src/sys/kern/kern_tc.c,v
retrieving revision 1.81
diff -u -p -r1.81 kern_tc.c
--- sys/kern/kern_tc.c 13 Dec 2022 17:30:36 -0000 1.81
+++ sys/kern/kern_tc.c 31 Jan 2023 18:12:57 -0000
@@ -56,7 +56,6 @@ dummy_get_timecount(struct timecounter *
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",
@@ -707,19 +706,6 @@ tc_windup(struct bintime *new_boottime,
naptime = th->th_naptime.sec;
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
Index: share/man/man9/tc_init.9
===================================================================
RCS file: /cvs/src/share/man/man9/tc_init.9,v
retrieving revision 1.10
diff -u -p -r1.10 tc_init.9
--- share/man/man9/tc_init.9 17 Jan 2023 10:10:11 -0000 1.10
+++ share/man/man9/tc_init.9 31 Jan 2023 18:12:57 -0000
@@ -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
Index: sys/arch/alpha/alpha/clock.c
===================================================================
RCS file: /cvs/src/sys/arch/alpha/alpha/clock.c,v
retrieving revision 1.26
diff -u -p -r1.26 clock.c
--- sys/arch/alpha/alpha/clock.c 10 Dec 2022 15:02:29 -0000 1.26
+++ sys/arch/alpha/alpha/clock.c 31 Jan 2023 18:12:57 -0000
@@ -65,7 +65,6 @@ int clk_irq = 0;
u_int rpcc_get_timecount(struct timecounter *);
struct timecounter rpcc_timecounter = {
.tc_get_timecount = rpcc_get_timecount,
- .tc_poll_pps = NULL,
.tc_counter_mask = ~0u,
.tc_frequency = 0,
.tc_name = "rpcc",
Index: sys/arch/amd64/amd64/tsc.c
===================================================================
RCS file: /cvs/src/sys/arch/amd64/amd64/tsc.c,v
retrieving revision 1.30
diff -u -p -r1.30 tsc.c
--- sys/arch/amd64/amd64/tsc.c 24 Oct 2022 00:56:33 -0000 1.30
+++ sys/arch/amd64/amd64/tsc.c 31 Jan 2023 18:12:57 -0000
@@ -49,7 +49,6 @@ u_int64_t (*tsc_rdtsc)(void) = rdtsc_lfe
struct timecounter tsc_timecounter = {
.tc_get_timecount = tsc_get_timecount_lfence,
- .tc_poll_pps = NULL,
.tc_counter_mask = ~0u,
.tc_frequency = 0,
.tc_name = "tsc",
Index: sys/arch/amd64/isa/clock.c
===================================================================
RCS file: /cvs/src/sys/arch/amd64/isa/clock.c,v
retrieving revision 1.38
diff -u -p -r1.38 clock.c
--- sys/arch/amd64/isa/clock.c 8 Nov 2022 17:34:13 -0000 1.38
+++ sys/arch/amd64/isa/clock.c 31 Jan 2023 18:12:57 -0000
@@ -118,7 +118,6 @@ u_int i8254_simple_get_timecount(struct
static struct timecounter i8254_timecounter = {
.tc_get_timecount = i8254_get_timecount,
- .tc_poll_pps = NULL,
.tc_counter_mask = ~0u,
.tc_frequency = TIMER_FREQ,
.tc_name = "i8254",
Index: sys/arch/arm/cortex/agtimer.c
===================================================================
RCS file: /cvs/src/sys/arch/arm/cortex/agtimer.c,v
retrieving revision 1.16
diff -u -p -r1.16 agtimer.c
--- sys/arch/arm/cortex/agtimer.c 17 Jan 2023 02:58:22 -0000 1.16
+++ sys/arch/arm/cortex/agtimer.c 31 Jan 2023 18:12:57 -0000
@@ -45,7 +45,6 @@ u_int agtimer_get_timecount(struct timec
static struct timecounter agtimer_timecounter = {
.tc_get_timecount = agtimer_get_timecount,
- .tc_poll_pps = NULL,
.tc_counter_mask = 0xffffffff,
.tc_frequency = 0,
.tc_name = "agtimer",
Index: sys/arch/arm/cortex/amptimer.c
===================================================================
RCS file: /cvs/src/sys/arch/arm/cortex/amptimer.c,v
retrieving revision 1.15
diff -u -p -r1.15 amptimer.c
--- sys/arch/arm/cortex/amptimer.c 17 Jan 2023 02:47:55 -0000 1.15
+++ sys/arch/arm/cortex/amptimer.c 31 Jan 2023 18:12:57 -0000
@@ -67,7 +67,6 @@ u_int amptimer_get_timecount(struct time
static struct timecounter amptimer_timecounter = {
.tc_get_timecount = amptimer_get_timecount,
- .tc_poll_pps = NULL,
.tc_counter_mask = 0xffffffff,
.tc_frequency = 0,
.tc_name = "amptimer",
Index: sys/arch/arm64/dev/agtimer.c
===================================================================
RCS file: /cvs/src/sys/arch/arm64/dev/agtimer.c,v
retrieving revision 1.21
diff -u -p -r1.21 agtimer.c
--- sys/arch/arm64/dev/agtimer.c 9 Jan 2023 15:22:53 -0000 1.21
+++ sys/arch/arm64/dev/agtimer.c 31 Jan 2023 18:12:57 -0000
@@ -47,7 +47,6 @@ u_int agtimer_get_timecount_sun50i(struc
static struct timecounter agtimer_timecounter = {
.tc_get_timecount = agtimer_get_timecount_default,
- .tc_poll_pps = NULL,
.tc_counter_mask = 0xffffffff,
.tc_frequency = 0,
.tc_name = "agtimer",
Index: sys/arch/armv7/omap/dmtimer.c
===================================================================
RCS file: /cvs/src/sys/arch/armv7/omap/dmtimer.c,v
retrieving revision 1.17
diff -u -p -r1.17 dmtimer.c
--- sys/arch/armv7/omap/dmtimer.c 27 Jan 2023 22:16:52 -0000 1.17
+++ sys/arch/armv7/omap/dmtimer.c 31 Jan 2023 18:12:57 -0000
@@ -109,7 +109,6 @@ u_int dmtimer_get_timecount(struct timec
static struct timecounter dmtimer_timecounter = {
.tc_get_timecount = dmtimer_get_timecount,
- .tc_poll_pps = NULL,
.tc_counter_mask = 0xffffffff,
.tc_frequency = 0,
.tc_name = "dmtimer",
Index: sys/arch/armv7/omap/gptimer.c
===================================================================
RCS file: /cvs/src/sys/arch/armv7/omap/gptimer.c,v
retrieving revision 1.18
diff -u -p -r1.18 gptimer.c
--- sys/arch/armv7/omap/gptimer.c 25 Jan 2023 14:14:39 -0000 1.18
+++ sys/arch/armv7/omap/gptimer.c 31 Jan 2023 18:12:57 -0000
@@ -111,7 +111,6 @@ u_int gptimer_get_timecount(struct timec
static struct timecounter gptimer_timecounter = {
.tc_get_timecount = gptimer_get_timecount,
- .tc_poll_pps = NULL,
.tc_counter_mask = 0xffffffff,
.tc_frequency = 0,
.tc_name = "gptimer",
Index: sys/arch/armv7/sunxi/sxitimer.c
===================================================================
RCS file: /cvs/src/sys/arch/armv7/sunxi/sxitimer.c,v
retrieving revision 1.19
diff -u -p -r1.19 sxitimer.c
--- sys/arch/armv7/sunxi/sxitimer.c 17 Jan 2023 02:38:59 -0000 1.19
+++ sys/arch/armv7/sunxi/sxitimer.c 31 Jan 2023 18:12:57 -0000
@@ -87,7 +87,6 @@ u_int sxitimer_get_timecount(struct time
static struct timecounter sxitimer_timecounter = {
.tc_get_timecount = sxitimer_get_timecount,
- .tc_poll_pps = NULL,
.tc_counter_mask = 0xffffffff,
.tc_frequency = 0,
.tc_name = "sxitimer",
Index: sys/arch/hppa/dev/clock.c
===================================================================
RCS file: /cvs/src/sys/arch/hppa/dev/clock.c,v
retrieving revision 1.34
diff -u -p -r1.34 clock.c
--- sys/arch/hppa/dev/clock.c 20 Jan 2023 17:18:08 -0000 1.34
+++ sys/arch/hppa/dev/clock.c 31 Jan 2023 18:12:57 -0000
@@ -55,7 +55,6 @@ void itmr_trigger_wrapper(void *);
struct timecounter itmr_timecounter = {
.tc_get_timecount = itmr_get_timecount,
- .tc_poll_pps = NULL,
.tc_counter_mask = 0xffffffff,
.tc_frequency = 0,
.tc_name = "itmr",
Index: sys/arch/i386/isa/clock.c
===================================================================
RCS file: /cvs/src/sys/arch/i386/isa/clock.c,v
retrieving revision 1.63
diff -u -p -r1.63 clock.c
--- sys/arch/i386/isa/clock.c 30 Jan 2023 10:49:05 -0000 1.63
+++ sys/arch/i386/isa/clock.c 31 Jan 2023 18:12:57 -0000
@@ -129,7 +129,6 @@ u_int i8254_simple_get_timecount(struct
static struct timecounter i8254_timecounter = {
.tc_get_timecount = i8254_get_timecount,
- .tc_poll_pps = NULL,
.tc_counter_mask = ~0u,
.tc_frequency = TIMER_FREQ,
.tc_name = "i8254",
Index: sys/arch/i386/pci/geodesc.c
===================================================================
RCS file: /cvs/src/sys/arch/i386/pci/geodesc.c,v
retrieving revision 1.17
diff -u -p -r1.17 geodesc.c
--- sys/arch/i386/pci/geodesc.c 21 Feb 2022 10:24:28 -0000 1.17
+++ sys/arch/i386/pci/geodesc.c 31 Jan 2023 18:12:57 -0000
@@ -61,7 +61,6 @@ u_int geodesc_get_timecount(struct tim
struct timecounter geodesc_timecounter = {
.tc_get_timecount = geodesc_get_timecount,
- .tc_poll_pps = 0,
.tc_counter_mask = 0xffffffff,
.tc_frequency = 27000000,
.tc_name = "GEOTSC",
Index: sys/arch/i386/pci/gscpm.c
===================================================================
RCS file: /cvs/src/sys/arch/i386/pci/gscpm.c,v
retrieving revision 1.13
diff -u -p -r1.13 gscpm.c
--- sys/arch/i386/pci/gscpm.c 21 Feb 2022 10:24:28 -0000 1.13
+++ sys/arch/i386/pci/gscpm.c 31 Jan 2023 18:12:57 -0000
@@ -51,7 +51,6 @@ u_int gscpm_get_timecount(struct timecou
struct timecounter gscpm_timecounter = {
.tc_get_timecount = gscpm_get_timecount,
- .tc_poll_pps = 0,
.tc_counter_mask = 0xffffff,
.tc_frequency = 3579545,
.tc_name = "GSCPM",
Index: sys/arch/i386/pci/ichpcib.c
===================================================================
RCS file: /cvs/src/sys/arch/i386/pci/ichpcib.c,v
retrieving revision 1.32
diff -u -p -r1.32 ichpcib.c
--- sys/arch/i386/pci/ichpcib.c 30 Jan 2023 10:49:05 -0000 1.32
+++ sys/arch/i386/pci/ichpcib.c 31 Jan 2023 18:12:57 -0000
@@ -56,7 +56,6 @@ u_int ichpcib_get_timecount(struct timec
struct timecounter ichpcib_timecounter = {
.tc_get_timecount = ichpcib_get_timecount,
- .tc_poll_pps = 0,
.tc_counter_mask = 0xffffff,
.tc_frequency = 3579545,
.tc_name = "ICHPM",
Index: sys/arch/loongson/loongson/generic3a_machdep.c
===================================================================
RCS file: /cvs/src/sys/arch/loongson/loongson/generic3a_machdep.c,v
retrieving revision 1.11
diff -u -p -r1.11 generic3a_machdep.c
--- sys/arch/loongson/loongson/generic3a_machdep.c 24 Jul 2021 08:21:13
-0000 1.11
+++ sys/arch/loongson/loongson/generic3a_machdep.c 31 Jan 2023 18:12:57
-0000
@@ -94,7 +94,6 @@ u_int rs780e_get_timecount(struct timec
struct timecounter rs780e_timecounter = {
.tc_get_timecount = rs780e_get_timecount,
- .tc_poll_pps = NULL,
.tc_counter_mask = 0xffffffffu, /* truncated to 32 bits */
.tc_frequency = HPET_FREQ,
.tc_name = "hpet",
Index: sys/arch/macppc/macppc/clock.c
===================================================================
RCS file: /cvs/src/sys/arch/macppc/macppc/clock.c,v
retrieving revision 1.52
diff -u -p -r1.52 clock.c
--- sys/arch/macppc/macppc/clock.c 27 Jan 2023 22:13:48 -0000 1.52
+++ sys/arch/macppc/macppc/clock.c 31 Jan 2023 18:12:57 -0000
@@ -69,7 +69,6 @@ const struct intrclock dec_intrclock = {
static struct timecounter tb_timecounter = {
.tc_get_timecount = tb_get_timecount,
- .tc_poll_pps = NULL,
.tc_counter_mask = 0xffffffff,
.tc_frequency = 0,
.tc_name = "tb",
Index: sys/arch/mips64/mips64/mips64_machdep.c
===================================================================
RCS file: /cvs/src/sys/arch/mips64/mips64/mips64_machdep.c,v
retrieving revision 1.40
diff -u -p -r1.40 mips64_machdep.c
--- sys/arch/mips64/mips64/mips64_machdep.c 19 Nov 2022 16:23:48 -0000
1.40
+++ sys/arch/mips64/mips64/mips64_machdep.c 31 Jan 2023 18:12:57 -0000
@@ -251,7 +251,6 @@ u_int cp0_get_timecount(struct timecount
struct timecounter cp0_timecounter = {
.tc_get_timecount = cp0_get_timecount,
- .tc_poll_pps = 0,
.tc_counter_mask = 0xffffffff,
.tc_frequency = 0,
.tc_name = "CP0",
Index: sys/arch/octeon/octeon/machdep.c
===================================================================
RCS file: /cvs/src/sys/arch/octeon/octeon/machdep.c,v
retrieving revision 1.135
diff -u -p -r1.135 machdep.c
--- sys/arch/octeon/octeon/machdep.c 11 Jan 2023 03:20:52 -0000 1.135
+++ sys/arch/octeon/octeon/machdep.c 31 Jan 2023 18:12:57 -0000
@@ -149,7 +149,6 @@ u_int ioclock_get_timecount(struct time
struct timecounter ioclock_timecounter = {
.tc_get_timecount = ioclock_get_timecount,
- .tc_poll_pps = NULL,
.tc_counter_mask = 0xffffffff, /* truncated to 32 bits */
.tc_frequency = 0, /* determined at runtime */
.tc_name = "ioclock",
Index: sys/arch/powerpc64/powerpc64/clock.c
===================================================================
RCS file: /cvs/src/sys/arch/powerpc64/powerpc64/clock.c,v
retrieving revision 1.8
diff -u -p -r1.8 clock.c
--- sys/arch/powerpc64/powerpc64/clock.c 27 Jan 2023 22:14:43 -0000
1.8
+++ sys/arch/powerpc64/powerpc64/clock.c 31 Jan 2023 18:12:57 -0000
@@ -45,7 +45,6 @@ u_int tb_get_timecount(struct timecounte
static struct timecounter tb_timecounter = {
.tc_get_timecount = tb_get_timecount,
- .tc_poll_pps = NULL,
.tc_counter_mask = 0xffffffff,
.tc_frequency = 0,
.tc_name = "tb",
Index: sys/arch/riscv64/riscv64/clock.c
===================================================================
RCS file: /cvs/src/sys/arch/riscv64/riscv64/clock.c,v
retrieving revision 1.8
diff -u -p -r1.8 clock.c
--- sys/arch/riscv64/riscv64/clock.c 27 Jan 2023 15:37:16 -0000 1.8
+++ sys/arch/riscv64/riscv64/clock.c 31 Jan 2023 18:12:57 -0000
@@ -48,7 +48,6 @@ u_int tb_get_timecount(struct timecounte
static struct timecounter tb_timecounter = {
.tc_get_timecount = tb_get_timecount,
- .tc_poll_pps = NULL,
.tc_counter_mask = 0xffffffff,
.tc_frequency = 0,
.tc_name = "tb",
Index: sys/arch/sparc64/dev/psycho.c
===================================================================
RCS file: /cvs/src/sys/arch/sparc64/dev/psycho.c,v
retrieving revision 1.81
diff -u -p -r1.81 psycho.c
--- sys/arch/sparc64/dev/psycho.c 16 Oct 2022 01:22:39 -0000 1.81
+++ sys/arch/sparc64/dev/psycho.c 31 Jan 2023 18:12:58 -0000
@@ -128,7 +128,6 @@ u_int stick_get_timecount(struct timecou
struct timecounter stick_timecounter = {
.tc_get_timecount = stick_get_timecount,
- .tc_poll_pps = NULL,
.tc_counter_mask = ~0u,
.tc_frequency = 0,
.tc_name = "stick",
Index: sys/arch/sparc64/sparc64/clock.c
===================================================================
RCS file: /cvs/src/sys/arch/sparc64/sparc64/clock.c,v
retrieving revision 1.75
diff -u -p -r1.75 clock.c
--- sys/arch/sparc64/sparc64/clock.c 13 Jan 2023 03:22:18 -0000 1.75
+++ sys/arch/sparc64/sparc64/clock.c 31 Jan 2023 18:12:58 -0000
@@ -112,7 +112,6 @@ u_int tick_get_timecount(struct timecoun
struct timecounter tick_timecounter = {
.tc_get_timecount = tick_get_timecount,
- .tc_poll_pps = NULL,
.tc_counter_mask = ~0u,
.tc_frequency = 0,
.tc_name = "tick",
@@ -125,7 +124,6 @@ u_int sys_tick_get_timecount(struct time
struct timecounter sys_tick_timecounter = {
.tc_get_timecount = sys_tick_get_timecount,
- .tc_poll_pps = NULL,
.tc_counter_mask = ~0u,
.tc_frequency = 0,
.tc_name = "sys_tick",
Index: sys/dev/acpi/acpihpet.c
===================================================================
RCS file: /cvs/src/sys/dev/acpi/acpihpet.c,v
retrieving revision 1.30
diff -u -p -r1.30 acpihpet.c
--- sys/dev/acpi/acpihpet.c 8 Nov 2022 14:54:47 -0000 1.30
+++ sys/dev/acpi/acpihpet.c 31 Jan 2023 18:12:58 -0000
@@ -43,7 +43,6 @@ void acpihpet_w(bus_space_tag_t _iot, b
static struct timecounter hpet_timecounter = {
.tc_get_timecount = acpihpet_gettime,
- .tc_poll_pps = 0,
.tc_counter_mask = 0xffffffff,
.tc_frequency = 0,
.tc_name = 0,
Index: sys/dev/acpi/acpitimer.c
===================================================================
RCS file: /cvs/src/sys/dev/acpi/acpitimer.c,v
retrieving revision 1.16
diff -u -p -r1.16 acpitimer.c
--- sys/dev/acpi/acpitimer.c 25 Aug 2022 17:43:34 -0000 1.16
+++ sys/dev/acpi/acpitimer.c 31 Jan 2023 18:12:58 -0000
@@ -42,7 +42,6 @@ uint32_t acpitimer_read(struct acpitimer
static struct timecounter acpi_timecounter = {
.tc_get_timecount = acpi_get_timecount,
- .tc_poll_pps = 0,
.tc_counter_mask = 0x00ffffff, /* 24 bits */
.tc_frequency = ACPI_FREQUENCY,
.tc_name = 0,
Index: sys/dev/pci/amdpm.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/amdpm.c,v
retrieving revision 1.38
diff -u -p -r1.38 amdpm.c
--- sys/dev/pci/amdpm.c 11 Mar 2022 18:00:45 -0000 1.38
+++ sys/dev/pci/amdpm.c 31 Jan 2023 18:12:58 -0000
@@ -78,7 +78,6 @@ u_int amdpm_get_timecount(struct timecou
static struct timecounter amdpm_timecounter = {
.tc_get_timecount = amdpm_get_timecount,
- .tc_poll_pps = 0,
.tc_counter_mask = 0xffffff,
.tc_frequency = AMDPM_FREQUENCY,
.tc_name = "AMDPM",
Index: sys/dev/pci/viapm.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/viapm.c,v
retrieving revision 1.21
diff -u -p -r1.21 viapm.c
--- sys/dev/pci/viapm.c 11 Mar 2022 18:00:52 -0000 1.21
+++ sys/dev/pci/viapm.c 31 Jan 2023 18:12:58 -0000
@@ -173,7 +173,6 @@ u_int viapm_get_timecount(struct timecou
static struct timecounter viapm_timecounter = {
.tc_get_timecount = viapm_get_timecount,
- .tc_poll_pps = 0,
.tc_counter_mask = 0xffffff,
.tc_frequency = VIAPM_FREQUENCY,
.tc_name = "VIAPM",
Index: sys/dev/pv/hyperv.c
===================================================================
RCS file: /cvs/src/sys/dev/pv/hyperv.c,v
retrieving revision 1.50
diff -u -p -r1.50 hyperv.c
--- sys/dev/pv/hyperv.c 29 Aug 2022 02:08:13 -0000 1.50
+++ sys/dev/pv/hyperv.c 31 Jan 2023 18:12:58 -0000
@@ -142,7 +142,6 @@ struct {
struct timecounter hv_timecounter = {
.tc_get_timecount = hv_gettime,
- .tc_poll_pps = 0,
.tc_counter_mask = 0xffffffff,
.tc_frequency = 10000000,
.tc_name = "hyperv",
Index: sys/dev/pv/pvclock.c
===================================================================
RCS file: /cvs/src/sys/dev/pv/pvclock.c,v
retrieving revision 1.8
diff -u -p -r1.8 pvclock.c
--- sys/dev/pv/pvclock.c 5 Nov 2021 11:38:29 -0000 1.8
+++ sys/dev/pv/pvclock.c 31 Jan 2023 18:12:58 -0000
@@ -75,7 +75,6 @@ struct cfdriver pvclock_cd = {
struct timecounter pvclock_timecounter = {
.tc_get_timecount = pvclock_get_timecount,
- .tc_poll_pps = NULL,
.tc_counter_mask = ~0u,
.tc_frequency = 0,
.tc_name = NULL,