diff options
author | julian <julian@FreeBSD.org> | 1997-11-25 07:07:48 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 1997-11-25 07:07:48 +0000 |
commit | cf4eb29e4783f9f144996339a3e84512d0877644 (patch) | |
tree | b5d30b291faa07bee731328b2792a221b8ed4728 /sys/kern/kern_synch.c | |
parent | 2d792e656e2819795c575a1abeb8dc54e2357484 (diff) | |
download | FreeBSD-src-cf4eb29e4783f9f144996339a3e84512d0877644.zip FreeBSD-src-cf4eb29e4783f9f144996339a3e84512d0877644.tar.gz |
Shift a few SYSINT() calls around.
this results in a few functions becoming static, and
the SYSINITs being close to the code they are related to.
setting up the dump device is with dumpsys() and
kicking off the scheduler is with the scheduler.
Mounting root is with the code that does it.
Reviewed by: phk
Diffstat (limited to 'sys/kern/kern_synch.c')
-rw-r--r-- | sys/kern/kern_synch.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c index 1d41773..c09efb1 100644 --- a/sys/kern/kern_synch.c +++ b/sys/kern/kern_synch.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)kern_synch.c 8.9 (Berkeley) 5/19/95 - * $Id: kern_synch.c,v 1.40 1997/11/21 11:36:56 bde Exp $ + * $Id: kern_synch.c,v 1.41 1997/11/22 08:35:38 bde Exp $ */ #include "opt_ktrace.h" @@ -98,7 +98,7 @@ SYSCTL_PROC(_kern, OID_AUTO, quantum, CTLTYPE_INT|CTLFLAG_RW, * Force switch among equal priority processes every 100ms. */ /* ARGSUSED */ -void +static void roundrobin(arg) void *arg; { @@ -196,7 +196,7 @@ static fixpt_t ccpu = 0.95122942450071400909 * FSCALE; /* exp(-1/20) */ * Recompute process priorities, every hz ticks. */ /* ARGSUSED */ -void +static void schedcpu(arg) void *arg; { @@ -715,3 +715,16 @@ resetpriority(p) need_resched(); } } + +/* ARGSUSED */ +static void sched_setup __P((void *dummy)); +static void +sched_setup(dummy) + void *dummy; +{ + /* Kick off timeout driven events by calling first time. */ + roundrobin(NULL); + schedcpu(NULL); +} +SYSINIT(sched_setup, SI_SUB_KICK_SCHEDULER, SI_ORDER_FIRST, sched_setup, NULL) + |