clockintr_schedule: refactor reusable code into clockintr_schedule_locked()
authorcheloha <cheloha@openbsd.org>
Sat, 9 Sep 2023 16:20:48 +0000 (16:20 +0000)
committercheloha <cheloha@openbsd.org>
Sat, 9 Sep 2023 16:20:48 +0000 (16:20 +0000)
commit7f1ddf074b2d51a9e36d5b661473a26f5149c139
tree1406651e84a3c072586364c9f7d5c047111a610e
parent4ab8b759f72eb3ad9844a8a2e6e63d176484b08e
clockintr_schedule: refactor reusable code into clockintr_schedule_locked()

Move the code common to clockintr_advance() and clockintr_schedule()
from clockintr_schedule() into a new function, clockintr_schedule_locked().
In a subsequent commit we will replace that code in clockintr_advance()
with a call to clockintr_schedule_locked().
sys/kern/kern_clockintr.c