diff options
author | Scott Soule Cheloha <cheloha@cvs.openbsd.org> | 2023-09-05 22:41:15 +0000 |
---|---|---|
committer | Scott Soule Cheloha <cheloha@cvs.openbsd.org> | 2023-09-05 22:41:15 +0000 |
commit | 219500d8b53cd336cc09088fbb4c88192f2d800d (patch) | |
tree | 39a1f04e7b30046b514e0159a1b096dadca53a07 | |
parent | 480238641276290093a1d9ae2898ee241df5566c (diff) |
clockintr: remove clockintr_expiration()
With the introduction of clockintr_advance_random(), this interface is
now unused. Remove it.
Suggested by mpi@.
Thread: https://marc.info/?l=openbsd-tech&m=169392340028978&w=2
ok mpi@ mlarkin@
-rw-r--r-- | sys/kern/kern_clockintr.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/sys/kern/kern_clockintr.c b/sys/kern/kern_clockintr.c index a2ee53bf6a3..b4e5901226d 100644 --- a/sys/kern/kern_clockintr.c +++ b/sys/kern/kern_clockintr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_clockintr.c,v 1.35 2023/09/05 22:29:28 cheloha Exp $ */ +/* $OpenBSD: kern_clockintr.c,v 1.36 2023/09/05 22:41:14 cheloha Exp $ */ /* * Copyright (c) 2003 Dale Rahn <drahn@openbsd.org> * Copyright (c) 2020 Mark Kettenis <kettenis@openbsd.org> @@ -44,7 +44,6 @@ uint32_t statclock_mask; /* [I] set of allowed offsets */ uint64_t clockintr_advance_random(struct clockintr *, uint64_t, uint32_t); void clockintr_cancel_locked(struct clockintr *); -uint64_t clockintr_expiration(const struct clockintr *); void clockintr_hardclock(struct clockintr *, void *); void clockintr_schedule(struct clockintr *, uint64_t); void clockintr_schedule_locked(struct clockintr *, uint64_t); @@ -421,21 +420,6 @@ clockintr_establish(struct clockintr_queue *cq, return cl; } -uint64_t -clockintr_expiration(const struct clockintr *cl) -{ - uint64_t expiration; - struct clockintr_queue *cq = cl->cl_queue; - - if (cl == &cq->cq_shadow) - return cl->cl_expiration; - - mtx_enter(&cq->cq_mtx); - expiration = cl->cl_expiration; - mtx_leave(&cq->cq_mtx); - return expiration; -} - void clockintr_schedule(struct clockintr *cl, uint64_t expiration) { |