Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/sched_4bsd.c
Show First 20 Lines • Show All 207 Lines • ▼ Show 20 Lines | hogticks = imax(1, (2 * hz * sched_slice + realstathz / 2) / | ||||
realstathz); | realstathz); | ||||
return (0); | return (0); | ||||
} | } | ||||
SYSCTL_NODE(_kern, OID_AUTO, sched, CTLFLAG_RD, 0, "Scheduler"); | SYSCTL_NODE(_kern, OID_AUTO, sched, CTLFLAG_RD, 0, "Scheduler"); | ||||
SYSCTL_STRING(_kern_sched, OID_AUTO, name, CTLFLAG_RD, "4BSD", 0, | SYSCTL_STRING(_kern_sched, OID_AUTO, name, CTLFLAG_RD, "4BSD", 0, | ||||
"Scheduler name"); | "Scheduler name"); | ||||
SYSCTL_PROC(_kern_sched, OID_AUTO, quantum, CTLTYPE_INT | CTLFLAG_RW, | SYSCTL_PROC(_kern_sched, OID_AUTO, quantum, | ||||
CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, | |||||
NULL, 0, sysctl_kern_quantum, "I", | NULL, 0, sysctl_kern_quantum, "I", | ||||
"Quantum for timeshare threads in microseconds"); | "Quantum for timeshare threads in microseconds"); | ||||
SYSCTL_INT(_kern_sched, OID_AUTO, slice, CTLFLAG_RW, &sched_slice, 0, | SYSCTL_INT(_kern_sched, OID_AUTO, slice, CTLFLAG_RW, &sched_slice, 0, | ||||
"Quantum for timeshare threads in stathz ticks"); | "Quantum for timeshare threads in stathz ticks"); | ||||
#ifdef SMP | #ifdef SMP | ||||
/* Enable forwarding of wakeups to all other cpus */ | /* Enable forwarding of wakeups to all other cpus */ | ||||
static SYSCTL_NODE(_kern_sched, OID_AUTO, ipiwakeup, CTLFLAG_RD, NULL, | static SYSCTL_NODE(_kern_sched, OID_AUTO, ipiwakeup, CTLFLAG_RD, NULL, | ||||
"Kernel SMP"); | "Kernel SMP"); | ||||
▲ Show 20 Lines • Show All 1,572 Lines • Show Last 20 Lines |