diff options
author | Alan Somers <asomers@FreeBSD.org> | 2022-09-27 02:20:46 +0000 |
---|---|---|
committer | Alan Somers <asomers@FreeBSD.org> | 2022-09-27 02:20:46 +0000 |
commit | 6622e299ac738ccef2eebfa7cc95a25b0314f5d5 (patch) | |
tree | bdbbee17c784944c30681ec621dfbce1613f910a | |
parent | d3f96f661050e9bd21fe29931992a8b9e67ff189 (diff) | |
download | src-6622e299ac738ccef2eebfa7cc95a25b0314f5d5.tar.gz src-6622e299ac738ccef2eebfa7cc95a25b0314f5d5.zip |
Fix the build with SCHED_STATS after d3f96f661050
MFC with: d3f96f661050e9bd21fe29931992a8b9e67ff189
Sponsored by: Axcient
-rw-r--r-- | sys/kern/kern_switch.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |