git: dbba19453e80 - stable/13 - sleepqueue: Annotate sleepq_max_depth as static
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 21 Feb 2022 14:58:11 UTC
The branch stable/13 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=dbba19453e800462c0a4000cb41a2be438f3495d
commit dbba19453e800462c0a4000cb41a2be438f3495d
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2022-02-14 14:41:07 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2022-02-21 14:57:46 +0000
sleepqueue: Annotate sleepq_max_depth as static
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 852ff943b9c23d40e36ebe5f82112f7bce4537c9)
---
sys/kern/subr_sleepqueue.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/kern/subr_sleepqueue.c b/sys/kern/subr_sleepqueue.c
index 36832ef96ba4..b9a336c88041 100644
--- a/sys/kern/subr_sleepqueue.c
+++ b/sys/kern/subr_sleepqueue.c
@@ -146,12 +146,12 @@ struct sleepqueue_chain {
} __aligned(CACHE_LINE_SIZE);
#ifdef SLEEPQUEUE_PROFILING
-u_int sleepq_max_depth;
static SYSCTL_NODE(_debug, OID_AUTO, sleepq, CTLFLAG_RD | CTLFLAG_MPSAFE, 0,
"sleepq profiling");
static SYSCTL_NODE(_debug_sleepq, OID_AUTO, chains,
CTLFLAG_RD | CTLFLAG_MPSAFE, 0,
"sleepq chain stats");
+static u_int sleepq_max_depth;
SYSCTL_UINT(_debug_sleepq, OID_AUTO, max_depth, CTLFLAG_RD, &sleepq_max_depth,
0, "maxmimum depth achieved of a single chain");