diff options
author | Scott Soule Cheloha <cheloha@cvs.openbsd.org> | 2023-10-11 00:02:26 +0000 |
---|---|---|
committer | Scott Soule Cheloha <cheloha@cvs.openbsd.org> | 2023-10-11 00:02:26 +0000 |
commit | 29118c3fa05fc5acd7a7a333be39f836176277f8 (patch) | |
tree | 991a1455b02dc81f2c9a3e73bf4c8f447d1e53ad /sys/kern | |
parent | 7880644a05c1ddb33625518d55ffb18c69ce0021 (diff) |
clockintr_stagger: rename parameters: "n" -> "numer", "count" -> "denom"
Rename these parameters to align the code with the forthcoming
manpage. No functional change.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_clockintr.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/kern_clockintr.c b/sys/kern/kern_clockintr.c index 712ddfbdb82..834775b112f 100644 --- a/sys/kern/kern_clockintr.c +++ b/sys/kern/kern_clockintr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_clockintr.c,v 1.59 2023/10/08 21:08:00 cheloha Exp $ */ +/* $OpenBSD: kern_clockintr.c,v 1.60 2023/10/11 00:02:25 cheloha Exp $ */ /* * Copyright (c) 2003 Dale Rahn <drahn@openbsd.org> * Copyright (c) 2020 Mark Kettenis <kettenis@openbsd.org> @@ -390,17 +390,17 @@ clockintr_schedule_locked(struct clockintr *cl, uint64_t expiration) } void -clockintr_stagger(struct clockintr *cl, uint64_t period, uint32_t n, - uint32_t count) +clockintr_stagger(struct clockintr *cl, uint64_t period, uint32_t numer, + uint32_t denom) { struct clockintr_queue *cq = cl->cl_queue; - KASSERT(n < count); + KASSERT(numer < denom); mtx_enter(&cq->cq_mtx); if (ISSET(cl->cl_flags, CLST_PENDING)) panic("%s: clock interrupt pending", __func__); - cl->cl_expiration = period / count * n; + cl->cl_expiration = period / denom * numer; mtx_leave(&cq->cq_mtx); } |