From cbdb8ca3864ad970d2c17a3c47b6cfff73a589ac Mon Sep 17 00:00:00 2001 From: cheloha Date: Wed, 11 Oct 2023 00:02:25 +0000 Subject: [PATCH] clockintr_stagger: rename parameters: "n" -> "numer", "count" -> "denom" Rename these parameters to align the code with the forthcoming manpage. No functional change. --- sys/kern/kern_clockintr.c | 10 +++++----- 1 file 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 * Copyright (c) 2020 Mark Kettenis @@ -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); } -- 2.20.1