From: cheloha Date: Tue, 5 Sep 2023 22:29:28 +0000 (+0000) Subject: clockintr: remove clockintr_nsecuptime() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=44e905e6c889c294eb0fee62b8428aaf184024b0;p=openbsd clockintr: remove clockintr_nsecuptime() 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@ --- diff --git a/sys/kern/kern_clockintr.c b/sys/kern/kern_clockintr.c index c32643615c3..a2ee53bf6a3 100644 --- a/sys/kern/kern_clockintr.c +++ b/sys/kern/kern_clockintr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_clockintr.c,v 1.34 2023/09/05 22:25:41 cheloha Exp $ */ +/* $OpenBSD: kern_clockintr.c,v 1.35 2023/09/05 22:29:28 cheloha Exp $ */ /* * Copyright (c) 2003 Dale Rahn * Copyright (c) 2020 Mark Kettenis @@ -46,7 +46,6 @@ 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 *); -uint64_t clockintr_nsecuptime(const struct clockintr *); void clockintr_schedule(struct clockintr *, uint64_t); void clockintr_schedule_locked(struct clockintr *, uint64_t); void clockintr_statclock(struct clockintr *, void *); @@ -498,13 +497,6 @@ clockintr_stagger(struct clockintr *cl, uint64_t period, u_int n, u_int count) mtx_leave(&cq->cq_mtx); } -uint64_t -clockintr_nsecuptime(const struct clockintr *cl) -{ - KASSERT(cl == &cl->cl_queue->cq_shadow); - return cl->cl_queue->cq_uptime; -} - void clockintr_hardclock(struct clockintr *cl, void *frame) {