Date: Tue, 27 Sep 2022 02:21:40 GMT From: Alan Somers <asomers@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 6622e299ac73 - main - Fix the build with SCHED_STATS after d3f96f661050 Message-ID: <202209270221.28R2LeOS057469@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by asomers: URL: https://cgit.FreeBSD.org/src/commit/?id=6622e299ac738ccef2eebfa7cc95a25b0314f5d5 commit 6622e299ac738ccef2eebfa7cc95a25b0314f5d5 Author: Alan Somers <asomers@FreeBSD.org> AuthorDate: 2022-09-27 02:20:46 +0000 Commit: Alan Somers <asomers@FreeBSD.org> CommitDate: 2022-09-27 02:20:46 +0000 Fix the build with SCHED_STATS after d3f96f661050 MFC with: d3f96f661050e9bd21fe29931992a8b9e67ff189 Sponsored by: Axcient --- sys/kern/kern_switch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_switch.c b/sys/kern/kern_switch.c index aec3b3d10e04..9d48ab188e13 100644 --- a/sys/kern/kern_switch.c +++ b/sys/kern/kern_switch.c @@ -131,7 +131,7 @@ sysctl_stats_reset(SYSCTL_HANDLER_ARGS) * Traverse the list of children of _kern_sched_stats and reset each * to 0. Skip the reset entry. */ - SLIST_FOREACH(p, oidp->oid_parent, oid_link) { + RB_FOREACH(p, sysctl_oid_list, oidp->oid_parent) { if (p == oidp || p->oid_arg1 == NULL) continue; counter = (uintptr_t)p->oid_arg1;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202209270221.28R2LeOS057469>