From: cheloha Date: Wed, 11 Oct 2023 15:07:04 +0000 (+0000) Subject: clockintr: move clockintr_schedule() into public API X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=67b188dd4d5ebf8a0f42a0c73cca4b3afc5672ce;p=openbsd clockintr: move clockintr_schedule() into public API Prototype clockintr_schedule() in . --- diff --git a/sys/kern/kern_clockintr.c b/sys/kern/kern_clockintr.c index 834775b112f..b8e45d4d24e 100644 --- a/sys/kern/kern_clockintr.c +++ b/sys/kern/kern_clockintr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_clockintr.c,v 1.60 2023/10/11 00:02:25 cheloha Exp $ */ +/* $OpenBSD: kern_clockintr.c,v 1.61 2023/10/11 15:07:04 cheloha Exp $ */ /* * Copyright (c) 2003 Dale Rahn * Copyright (c) 2020 Mark Kettenis @@ -32,7 +32,6 @@ #include void clockintr_hardclock(struct clockintr *, void *, void *); -void clockintr_schedule(struct clockintr *, uint64_t); void clockintr_schedule_locked(struct clockintr *, uint64_t); void clockqueue_intrclock_install(struct clockintr_queue *, const struct intrclock *); diff --git a/sys/sys/clockintr.h b/sys/sys/clockintr.h index ab6a39eb5cc..e9987f54175 100644 --- a/sys/sys/clockintr.h +++ b/sys/sys/clockintr.h @@ -1,4 +1,4 @@ -/* $OpenBSD: clockintr.h,v 1.21 2023/10/08 21:08:00 cheloha Exp $ */ +/* $OpenBSD: clockintr.h,v 1.22 2023/10/11 15:07:04 cheloha Exp $ */ /* * Copyright (c) 2020-2022 Scott Cheloha * @@ -112,6 +112,7 @@ uint64_t clockintr_advance_random(struct clockintr *, uint64_t, uint32_t); void clockintr_cancel(struct clockintr *); struct clockintr *clockintr_establish(struct cpu_info *, void (*)(struct clockintr *, void *, void *), void *); +void clockintr_schedule(struct clockintr *, uint64_t); void clockintr_stagger(struct clockintr *, uint64_t, uint32_t, uint32_t); void clockqueue_init(struct clockintr_queue *); int sysctl_clockintr(int *, u_int, void *, size_t *, void *, size_t);