path: root/sys/sys/runq.h
diff options
authorJulian Elischer <julian@FreeBSD.org>2001-09-12 08:38:13 +0000
committerJulian Elischer <julian@FreeBSD.org>2001-09-12 08:38:13 +0000
commitb40ce4165d5eb3a5de1515245055350ae3dbab8e (patch)
treeb1a19fcdf05759281fab0d89efb13f0fdf42102e /sys/sys/runq.h
parent9b36a30ee46a7766f269fe832ef3a2daa2ec04f0 (diff)
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
Notes: svn path=/head/; revision=83366
Diffstat (limited to 'sys/sys/runq.h')
1 files changed, 6 insertions, 4 deletions
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 *);