agtimer(4/arm64): agtimer_delay: compute cycle count with 64-bit arithmetic
authorcheloha <cheloha@openbsd.org>
Thu, 10 Aug 2023 22:58:04 +0000 (22:58 +0000)
committercheloha <cheloha@openbsd.org>
Thu, 10 Aug 2023 22:58:04 +0000 (22:58 +0000)
commitcf91e96cb814d49d736b47f9b1a737e8b3cb1db7
treecdccb4f0f2fe11b000372c39cf20149f6b99f404
parent73e6a6f7f5e349e3e80c23d84a5f3ff867d68447
agtimer(4/arm64): agtimer_delay: compute cycle count with 64-bit arithmetic

Converting from microseconds to timer cycles is much simpler with
64-bit arithmetic.

Thread: https://marc.info/?l=openbsd-tech&m=169146193022516&w=2

ok drahn@ kettenis@
sys/arch/arm64/dev/agtimer.c