diff options
author | scottl <scottl@FreeBSD.org> | 2004-07-23 23:09:00 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2004-07-23 23:09:00 +0000 |
commit | f72aae4cb25e34af16e050d5795a4678d23c8051 (patch) | |
tree | 2601a911ea87b9cf5cbcb0696ac3d50877a5426e /sys | |
parent | fdb6f08c0e45c844592f7a8068015129c2f5ea78 (diff) | |
download | FreeBSD-src-f72aae4cb25e34af16e050d5795a4678d23c8051.zip FreeBSD-src-f72aae4cb25e34af16e050d5795a4678d23c8051.tar.gz |
Clean up whitespace, increase consistency and correctness.
Submitted by: bde
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/sched_4bsd.c | 14 | ||||
-rw-r--r-- | sys/kern/sched_ule.c | 8 |
2 files changed, 9 insertions, 13 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 diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c index a18fe40..b883ac0 100644 --- a/sys/kern/sched_ule.c +++ b/sys/kern/sched_ule.c @@ -61,12 +61,10 @@ SYSCTL_INT(_kern, OID_AUTO, ccpu, CTLFLAG_RD, &ccpu, 0, ""); static void sched_setup(void *dummy); SYSINIT(sched_setup, SI_SUB_RUN_QUEUE, SI_ORDER_FIRST, sched_setup, NULL) -static SYSCTL_NODE(_kern, OID_AUTO, sched, CTLFLAG_RW, 0, "SCHED"); +static SYSCTL_NODE(_kern, OID_AUTO, sched, CTLFLAG_RW, 0, "Scheduler"); -#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"); +SYSCTL_STRING(_kern_sched, OID_AUTO, name, CTLFLAG_RD, "ule", 0, + "Scheduler name"); static int slice_min = 1; SYSCTL_INT(_kern_sched, OID_AUTO, slice_min, CTLFLAG_RW, &slice_min, 0, ""); |