timecounting: use C99-style initialization for all timecounter structs
authorcheloha <cheloha@openbsd.org>
Tue, 23 Feb 2021 04:44:30 +0000 (04:44 +0000)
committercheloha <cheloha@openbsd.org>
Tue, 23 Feb 2021 04:44:30 +0000 (04:44 +0000)
commit8611d3cdb295683ad47c33036b86b471b2d09741
treed0827d3cbd218a6f696bdc22475fe41c531de26a
parent2b7184efd23ea39cb55fa79058456f49bdf50949
timecounting: use C99-style initialization for all timecounter structs

The timecounter struct is large and I think it may change in the
future.  Changing it later will be easier if we use C99-style
initialization for all timecounter structs.  It also makes reading the
code a bit easier.

For reasons I cannot explain, switching to C99-style initialization
sometimes changes the hash of the resulting object file, even though
the resulting struct should be the same.  So there is a binary change
here, but only sometimes.  No behavior should change in either case.

I can't compile-test this everywhere but I have been staring at the
diff for days now and I'm relatively confident this will not break
compilation.  Fingers crossed.

ok gnezdo@
26 files changed:
sys/arch/alpha/alpha/clock.c
sys/arch/amd64/amd64/tsc.c
sys/arch/amd64/isa/clock.c
sys/arch/arm/cortex/agtimer.c
sys/arch/arm/cortex/amptimer.c
sys/arch/arm64/dev/agtimer.c
sys/arch/armv7/omap/dmtimer.c
sys/arch/armv7/omap/gptimer.c
sys/arch/armv7/sunxi/sxitimer.c
sys/arch/hppa/dev/clock.c
sys/arch/i386/isa/clock.c
sys/arch/i386/pci/geodesc.c
sys/arch/i386/pci/gscpm.c
sys/arch/i386/pci/ichpcib.c
sys/arch/macppc/macppc/clock.c
sys/arch/mips64/mips64/mips64_machdep.c
sys/arch/powerpc64/powerpc64/clock.c
sys/arch/sparc64/dev/psycho.c
sys/arch/sparc64/sparc64/clock.c
sys/dev/acpi/acpihpet.c
sys/dev/acpi/acpitimer.c
sys/dev/pci/amdpm.c
sys/dev/pci/viapm.c
sys/dev/pv/hyperv.c
sys/dev/pv/pvclock.c
sys/kern/kern_tc.c