diff options
author | Scott Soule Cheloha <cheloha@cvs.openbsd.org> | 2023-10-11 15:07:05 +0000 |
---|---|---|
committer | Scott Soule Cheloha <cheloha@cvs.openbsd.org> | 2023-10-11 15:07:05 +0000 |
commit | 3b7fa95a130954068aa13697cfa41343bdb0b10c (patch) | |
tree | fe5b1f88e947b26a30f23870b3cd13c4d6a63551 | |
parent | 3aced467e9486b9773facbe780dc29012c009721 (diff) |
clockintr: move clockintr_schedule() into public API
Prototype clockintr_schedule() in <sys/clockintr.h>.
-rw-r--r-- | sys/kern/kern_clockintr.c | 3 | ||||
-rw-r--r-- | sys/sys/clockintr.h | 3 |
2 files changed, 3 insertions, 3 deletions
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 <drahn@openbsd.org> * Copyright (c) 2020 Mark Kettenis <kettenis@openbsd.org> @@ -32,7 +32,6 @@ #include <sys/time.h> 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 <cheloha@openbsd.org> * @@ -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); |