Fix the build with SCHED_STATS after d3f96f6610

MFC with:	d3f96f6610
Sponsored by:	Axcient
This commit is contained in:
Alan Somers 2022-09-26 20:20:46 -06:00
parent d3f96f6610
commit 6622e299ac

View File

@ -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;