clockintr: refactor clockintr_cancel() into clockintr_cancel_locked()
authorcheloha <cheloha@openbsd.org>
Fri, 9 Feb 2024 15:06:23 +0000 (15:06 +0000)
committercheloha <cheloha@openbsd.org>
Fri, 9 Feb 2024 15:06:23 +0000 (15:06 +0000)
commit34cee5627b9c963ce15ca36545680a766a98e3e1
treea3df48e5ad9542214f8fb69b92bec4b3835d1a3e
parentd8a36b37c8bbff6cd502aa6447f9def0fec0a766
clockintr: refactor clockintr_cancel() into clockintr_cancel_locked()

Move the mutex-protected portions of clockintr_cancel() into a separate
function, clockintr_cancel_locked(), so that the code can be reused by
other callers.

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

ok mpi@
sys/kern/kern_clockintr.c