Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/kern_switch.c
Show First 20 Lines • Show All 136 Lines • ▼ Show 20 Lines | SLIST_FOREACH(p, oidp->oid_parent, oid_link) { | ||||
counter = (uintptr_t)p->oid_arg1; | counter = (uintptr_t)p->oid_arg1; | ||||
CPU_FOREACH(i) { | CPU_FOREACH(i) { | ||||
*(long *)(dpcpu_off[i] + counter) = 0; | *(long *)(dpcpu_off[i] + counter) = 0; | ||||
} | } | ||||
} | } | ||||
return (0); | return (0); | ||||
} | } | ||||
SYSCTL_PROC(_kern_sched_stats, OID_AUTO, reset, CTLTYPE_INT | CTLFLAG_WR, NULL, | SYSCTL_PROC(_kern_sched_stats, OID_AUTO, reset, | ||||
0, sysctl_stats_reset, "I", "Reset scheduler statistics"); | CTLTYPE_INT | CTLFLAG_WR | CTLFLAG_NEEDGIANT, | ||||
NULL, 0, sysctl_stats_reset, "I", | |||||
"Reset scheduler statistics"); | |||||
#endif | #endif | ||||
/************************************************************************ | /************************************************************************ | ||||
* Functions that manipulate runnability from a thread perspective. * | * Functions that manipulate runnability from a thread perspective. * | ||||
************************************************************************/ | ************************************************************************/ | ||||
/* | /* | ||||
* Select the thread that will be run next. | * Select the thread that will be run next. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 388 Lines • Show Last 20 Lines |