-/* $OpenBSD: kern_clockintr.c,v 1.58 2023/09/25 00:29:31 cheloha Exp $ */
+/* $OpenBSD: kern_clockintr.c,v 1.59 2023/10/08 21:08:00 cheloha Exp $ */
/*
* Copyright (c) 2003 Dale Rahn <drahn@openbsd.org>
* Copyright (c) 2020 Mark Kettenis <kettenis@openbsd.org>
void clockqueue_pend_insert(struct clockintr_queue *, struct clockintr *,
uint64_t);
void clockqueue_reset_intrclock(struct clockintr_queue *);
+void intrclock_rearm(struct intrclock *, uint64_t);
+void intrclock_trigger(struct intrclock *);
uint64_t nsec_advance(uint64_t *, uint64_t, uint64_t);
/*
intrclock_trigger(&cq->cq_intrclock);
}
+void
+intrclock_rearm(struct intrclock *ic, uint64_t nsecs)
+{
+ ic->ic_rearm(ic->ic_cookie, nsecs);
+}
+
+void
+intrclock_trigger(struct intrclock *ic)
+{
+ ic->ic_trigger(ic->ic_cookie);
+}
+
/*
* Advance *next in increments of period until it exceeds now.
* Returns the number of increments *next was advanced.
-/* $OpenBSD: clockintr.h,v 1.20 2023/09/17 15:24:35 cheloha Exp $ */
+/* $OpenBSD: clockintr.h,v 1.21 2023/10/08 21:08:00 cheloha Exp $ */
/*
* Copyright (c) 2020-2022 Scott Cheloha <cheloha@openbsd.org>
*
void (*ic_trigger)(void *);
};
-static inline void
-intrclock_rearm(struct intrclock *ic, uint64_t nsecs)
-{
- ic->ic_rearm(ic->ic_cookie, nsecs);
-}
-
-static inline void
-intrclock_trigger(struct intrclock *ic)
-{
- ic->ic_trigger(ic->ic_cookie);
-}
-
/*
* Schedulable clock interrupt callback.
*