git: 852ff943b9c2 - main - sleepqueue: Annotate sleepq_max_depth as static
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 14 Feb 2022 15:07:03 UTC
The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=852ff943b9c23d40e36ebe5f82112f7bce4537c9 commit 852ff943b9c23d40e36ebe5f82112f7bce4537c9 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2022-02-14 14:41:07 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2022-02-14 15:06:47 +0000 sleepqueue: Annotate sleepq_max_depth as static MFC after: 1 week Sponsored by: The FreeBSD Foundation --- 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 af5a001b46fb..5e93d7c19bc4 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");