OpenBSD cvs log

created 2023-10-22T07:42:05Z
begin 2023-10-17T00:00:00Z
end 2023-10-18T00:00:00Z
path src/sys
commits 1

date 2023-10-17T00:04:02Z
author cheloha
files src/sys/kern/kern_clock.c log diff annotate
src/sys/kern/kern_clockintr.c log diff annotate
src/sys/kern/kern_time.c log diff annotate
src/sys/kern/sched_bsd.c log diff annotate
src/sys/kern/subr_prof.c log diff annotate
src/sys/sys/clockintr.h log diff annotate
src/sys/sys/resourcevar.h log diff annotate
src/sys/sys/sched.h log diff annotate
src/sys/sys/systm.h log diff annotate
src/sys/sys/time.h log diff annotate
message clockintr: move callback-specific API behaviors to "clockrequest" namespace

The API's behavior when invoked from a callback function is impossible
to document. Move the special behavior into a distinct namespace,
"clockrequest".

- Add a 'struct clockrequest'. Basically a stripped-down 'struct clockintr'
for exclusive use during clockintr_dispatch().
- In clockintr_queue, replace the "cq_shadow" clockintr with a "cq_request"
clockrequest. They serve the same purpose.
- CLST_SHADOW_PENDING -> CR_RESCHEDULE; different namespace, same meaning.
- CLST_IGNORE_SHADOW -> CLST_IGNORE_REQUEST; same meaning.
- Move shadow branch in clockintr_advance() to clockrequest_advance().
- clockintr_request_random() becomes clockrequest_advance_random().
- Delete dead shadow branches in clockintr_cancel(), clockintr_schedule().
- Callback functions now get a clockrequest pointer instead of a special
clockintr pointer: update all prototypes, callers.

No functional change intended.