diff options
author | peter <peter@FreeBSD.org> | 1999-08-19 00:14:43 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-08-19 00:14:43 +0000 |
commit | eac345f15d0d3331d55b145309860910ca6db67d (patch) | |
tree | 942ee47def4053d839bdc584f1be174897e86dc6 /sys/kern/kern_synch.c | |
parent | 37fbf58fe8969ca0a62b6b1c8d3fcf0d7dea7ac3 (diff) | |
download | FreeBSD-src-eac345f15d0d3331d55b145309860910ca6db67d.zip FreeBSD-src-eac345f15d0d3331d55b145309860910ca6db67d.tar.gz |
Don't initialize run queues here, do it all in one place.
Diffstat (limited to 'sys/kern/kern_synch.c')
-rw-r--r-- | sys/kern/kern_synch.c | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c index 72b788c..17d3a6c 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.75 1999/03/03 18:15:29 julian Exp $ + * $Id: kern_synch.c,v 1.76 1999/03/05 16:38:12 bde Exp $ */ #include "opt_ktrace.h" @@ -62,8 +62,6 @@ #endif #include <machine/limits.h> /* for UCHAR_MAX = typeof(p_priority)_MAX */ -static void rqinit __P((void *)); -SYSINIT(runqueue, SI_SUB_RUN_QUEUE, SI_ORDER_FIRST, rqinit, NULL) static void sched_setup __P((void *dummy)); SYSINIT(sched_setup, SI_SUB_KICK_SCHEDULER, SI_ORDER_FIRST, sched_setup, NULL) @@ -295,7 +293,7 @@ schedcpu(arg) p->p_stat == SRUN && (p->p_flag & P_INMEM) && (p->p_priority / PPQ) != (p->p_usrpri / PPQ)) { - remrq(p); + remrunqueue(p); p->p_priority = p->p_usrpri; setrunqueue(p); } else @@ -832,24 +830,6 @@ mi_switch() } /* - * Initialize the (doubly-linked) run queues - * to be empty. - */ -/* ARGSUSED*/ -static void -rqinit(dummy) - void *dummy; -{ - register int i; - - for (i = 0; i < NQS; i++) { - qs[i].ph_link = qs[i].ph_rlink = (struct proc *)&qs[i]; - rtqs[i].ph_link = rtqs[i].ph_rlink = (struct proc *)&rtqs[i]; - idqs[i].ph_link = idqs[i].ph_rlink = (struct proc *)&idqs[i]; - } -} - -/* * Change process state to be runnable, * placing it on the run queue if it is in memory, * and awakening the swapper if it isn't in memory. |