timecounter.tc_frequency is a 64-bit value: this cast is unnecessary.
Split off from the acpihpet_delay() commit at jsg@'s suggestion.
Link1: https://marc.info/?l=openbsd-tech&m=
166053729104923&w=2
Link2: https://marc.info/?l=openbsd-tech&m=
166132727120528&w=2
probably ok jsg@
-/* $OpenBSD: acpihpet.c,v 1.27 2022/08/25 17:54:33 cheloha Exp $ */
+/* $OpenBSD: acpihpet.c,v 1.28 2022/08/25 18:01:54 cheloha Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
*
freq = 1000000000000000ull / period;
printf(": %lld Hz\n", freq);
- hpet_timecounter.tc_frequency = (uint32_t)freq;
+ hpet_timecounter.tc_frequency = freq;
hpet_timecounter.tc_priv = sc;
hpet_timecounter.tc_name = sc->sc_dev.dv_xname;
tc_init(&hpet_timecounter);