summaryrefslogtreecommitdiffstats
path: root/sys/kern/sched_4bsd.c
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2004-07-23 23:09:00 +0000
committerscottl <scottl@FreeBSD.org>2004-07-23 23:09:00 +0000
commitf72aae4cb25e34af16e050d5795a4678d23c8051 (patch)
tree2601a911ea87b9cf5cbcb0696ac3d50877a5426e /sys/kern/sched_4bsd.c
parentfdb6f08c0e45c844592f7a8068015129c2f5ea78 (diff)
downloadFreeBSD-src-f72aae4cb25e34af16e050d5795a4678d23c8051.zip
FreeBSD-src-f72aae4cb25e34af16e050d5795a4678d23c8051.tar.gz
Clean up whitespace, increase consistency and correctness.
Submitted by: bde
Diffstat (limited to 'sys/kern/sched_4bsd.c')
-rw-r--r--sys/kern/sched_4bsd.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/sys/kern/sched_4bsd.c b/sys/kern/sched_4bsd.c
index 4bff511..c0f6a32 100644
--- a/sys/kern/sched_4bsd.c
+++ b/sys/kern/sched_4bsd.c
@@ -152,16 +152,14 @@ sysctl_kern_quantum(SYSCTL_HANDLER_ARGS)
return (0);
}
-SYSCTL_NODE(_kern, OID_AUTO, sched, CTLFLAG_RD, 0, "SCHED");
+SYSCTL_NODE(_kern, OID_AUTO, sched, CTLFLAG_RD, 0, "Scheduler");
-#define SCHD_NAME "4bsd"
-#define SCHD_NAME_LEN 4
-SYSCTL_STRING(_kern_sched, OID_AUTO, name, CTLFLAG_RD, SCHD_NAME, SCHD_NAME_LEN,
- "System is using the 4BSD scheduler");
+SYSCTL_STRING(_kern_sched, OID_AUTO, name, CTLFLAG_RD, "4BSD", 0,
+ "Scheduler name");
-SYSCTL_PROC(_kern_sched, OID_AUTO, quantum, CTLTYPE_INT|CTLFLAG_RW,
- 0, sizeof sched_quantum, sysctl_kern_quantum, "I",
- "Roundrobin scheduling quantum in microseconds");
+SYSCTL_PROC(_kern_sched, OID_AUTO, quantum, CTLTYPE_INT | CTLFLAG_RW,
+ 0, sizeof sched_quantum, sysctl_kern_quantum, "I",
+ "Roundrobin scheduling quantum in microseconds");
/*
* Arrange to reschedule if necessary, taking the priorities and
OpenPOWER on IntegriCloud