Add the sysctl node 'kern.sched.name' that has the name of the scheduler

currently in use.  Move the 4bsd kern.quantum node to kern.sched.quantum
for consistency.
This commit is contained in:
Scott Long 2004-06-21 22:05:46 +00:00
parent c1f7e1d994
commit dc09579417
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130881
2 changed files with 13 additions and 1 deletions

View file

@ -152,7 +152,14 @@ sysctl_kern_quantum(SYSCTL_HANDLER_ARGS)
return (0);
}
SYSCTL_PROC(_kern, OID_AUTO, quantum, CTLTYPE_INT|CTLFLAG_RW,
SYSCTL_NODE(_kern, OID_AUTO, sched, CTLFLAG_RD, 0, "SCHED");
#define SCHD_NAME "4bsd"
#define SCHD_NAME_LEN 4
SYSCTL_STRING(_kern_sched, OID_AUTO, name, CTLFALG_RO, SCHD_NAME, SCHD_NAME_LEN,
"System is using the 4BSD scheduler");
SYSCTL_PROC(_kern_sched, OID_AUTO, quantum, CTLTYPE_INT|CTLFLAG_RW,
0, sizeof sched_quantum, sysctl_kern_quantum, "I",
"Roundrobin scheduling quantum in microseconds");

View file

@ -65,6 +65,11 @@ SYSINIT(sched_setup, SI_SUB_RUN_QUEUE, SI_ORDER_FIRST, sched_setup, NULL)
static SYSCTL_NODE(_kern, OID_AUTO, sched, CTLFLAG_RW, 0, "SCHED");
#define ULE_NAME "ule"
#define ULE_NAME_LEN 3
SYSCTL_STRING(_kern_sched, OID_AUTO, name, CTLFLAG_RD, ULE_NAME, ULE_NAME_LEN,
"System is using the ULE scheduler");
static int slice_min = 1;
SYSCTL_INT(_kern_sched, OID_AUTO, slice_min, CTLFLAG_RW, &slice_min, 0, "");