mips64: simplify cp0_rearm_int5(), cp0_trigger_int5_masked()
authorcheloha <cheloha@openbsd.org>
Wed, 18 Jan 2023 19:12:43 +0000 (19:12 +0000)
committercheloha <cheloha@openbsd.org>
Wed, 18 Jan 2023 19:12:43 +0000 (19:12 +0000)
commit5368703543a23b294fbb2c47c1a57455e51b55a1
treec281b1a5a384cd25b22b0b7b1586283623ac26fb
parentbebffd5a4ddf6519ce45f52209f75309c08e2508
mips64: simplify cp0_rearm_int5(), cp0_trigger_int5_masked()

The tangle of branches in cp0_rearm_int5() can be simplified to:

if cycles <= t1 - t0, we missed

We can simplify cp0_trigger_int5_masked() in the same way.

ok visa@
sys/arch/mips64/mips64/clock.c