addupc_intr: support adding multiple profiling ticks at once
authorcheloha <cheloha@openbsd.org>
Tue, 25 Apr 2023 00:58:47 +0000 (00:58 +0000)
committercheloha <cheloha@openbsd.org>
Tue, 25 Apr 2023 00:58:47 +0000 (00:58 +0000)
commitd624e113b0ce84e371a65fa5285d02714cfed918
tree168af7052687ca03f7a75ec4b52b4fe6aed55d97
parent4fcbf10c2ad10dab6d317375f484d227ff5f760b
addupc_intr: support adding multiple profiling ticks at once

Add a third parameter to addupc_intr(), "u_long nticks".  This will
allow us to credit more than one profiling tick to the thread at once.
Should be useful in the unusual case where the clock interrupt is
masked for an extended period.
sys/kern/kern_clock.c
sys/kern/subr_prof.c
sys/sys/resourcevar.h