hppa: simplify itmr_rearm()
authorcheloha <cheloha@openbsd.org>
Fri, 20 Jan 2023 17:18:08 +0000 (17:18 +0000)
committercheloha <cheloha@openbsd.org>
Fri, 20 Jan 2023 17:18:08 +0000 (17:18 +0000)
commit97da40c750ebb020cff0b9e21e064859b5f50dbd
treef9a094b85dd71ea388fb5af9a69277d2ea90dd06
parent4493dc292f90a38fd694611347388d75e36c090a
hppa: simplify itmr_rearm()

The nest of branches in itmr_rearm() can be simplified to:

if (cycles <= t1 - t0) {
/* we probably missed */
}

We're doing modular unsigned 32-bit, so the rollover case in the
current code is superfluous.

Tested by miod@.

"Works for me." miod@
sys/arch/hppa/dev/clock.c