From b40ce4165d5eb3a5de1515245055350ae3dbab8e Mon Sep 17 00:00:00 2001 From: Julian Elischer Date: Wed, 12 Sep 2001 08:38:13 +0000 Subject: KSE Milestone 2 Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha --- sys/sys/runq.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'sys/sys/runq.h') diff --git a/sys/sys/runq.h b/sys/sys/runq.h index 20286c582f79..4636e7a10252 100644 --- a/sys/sys/runq.h +++ b/sys/sys/runq.h @@ -29,6 +29,8 @@ #ifndef _RUNQ_H_ #define _RUNQ_H_ +struct kse; + /* * Run queue parameters. */ @@ -52,7 +54,7 @@ typedef u_int32_t rqb_word_t; /* * Head of run queues. */ -TAILQ_HEAD(rqhead, proc); +TAILQ_HEAD(rqhead, kse); /* * Bit array which maintains the status of a run queue. When a queue is @@ -71,10 +73,10 @@ struct runq { struct rqhead rq_queues[RQ_NQS]; }; -void runq_add(struct runq *, struct proc *); +void runq_add(struct runq *, struct kse *); int runq_check(struct runq *); -struct proc *runq_choose(struct runq *); +struct kse *runq_choose(struct runq *); void runq_init(struct runq *); -void runq_remove(struct runq *, struct proc *); +void runq_remove(struct runq *, struct kse *); #endif -- cgit v1.2.3