clockintr_advance: tweak logic to eliminate early-return
authorcheloha <cheloha@openbsd.org>
Sat, 9 Sep 2023 17:07:59 +0000 (17:07 +0000)
committercheloha <cheloha@openbsd.org>
Sat, 9 Sep 2023 17:07:59 +0000 (17:07 +0000)
commit4c22523632d7150cbb4e9b2b45274c0d19f182a7
tree93cd79b0ee814b55e67139e195a50f303080e17b
parent16355e610f87c90560e01de785463f35d761244a
clockintr_advance: tweak logic to eliminate early-return

With the switch to clockintr_schedule_locked(), clockintr_advance() is
now much shorter and the early-return from the non-mutex path doesn't
make the function any easier to read.  Move the mutex path into the else
branch and always return 'count' at the end of the function.
sys/kern/kern_clockintr.c