git: 2bf8ca97a9ae - stable/13 - domain: Use designated constants for timeout periods
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 11 Aug 2022 14:36:26 UTC
The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=2bf8ca97a9aeabcbb8581a0612f3adf8475badeb commit 2bf8ca97a9aeabcbb8581a0612f3adf8475badeb Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2022-08-03 00:31:29 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2022-08-11 14:36:11 +0000 domain: Use designated constants for timeout periods No functional change intended. Sponsored by: The FreeBSD Foundation (cherry picked from commit 852695416c856abf6197d0345c1f6f9e3a70beab) --- sys/kern/uipc_domain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/uipc_domain.c b/sys/kern/uipc_domain.c index 85a2da76012d..08ad42224848 100644 --- a/sys/kern/uipc_domain.c +++ b/sys/kern/uipc_domain.c @@ -532,7 +532,7 @@ pfslowtimo(void *arg) } NET_EPOCH_EXIT(et); rm_runlock(&pftimo_lock, &tracker); - callout_reset(&pfslow_callout, hz/2, pfslowtimo, NULL); + callout_reset(&pfslow_callout, hz / PR_SLOWHZ, pfslowtimo, NULL); } static void @@ -549,5 +549,5 @@ pffasttimo(void *arg) } NET_EPOCH_EXIT(et); rm_runlock(&pftimo_lock, &tracker); - callout_reset(&pffast_callout, hz/5, pffasttimo, NULL); + callout_reset(&pffast_callout, hz / PR_FASTHZ, pffasttimo, NULL); }