summaryrefslogtreecommitdiffstats
path: root/sys/sys/runq.h
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2001-09-12 08:38:13 +0000
committerjulian <julian@FreeBSD.org>2001-09-12 08:38:13 +0000
commit5596676e6c6c1e81e899cd0531f9b1c28a292669 (patch)
treeb1a19fcdf05759281fab0d89efb13f0fdf42102e /sys/sys/runq.h
parent83e00d4274950d2b531c24692cd123538ffbddb9 (diff)
downloadFreeBSD-src-5596676e6c6c1e81e899cd0531f9b1c28a292669.zip
FreeBSD-src-5596676e6c6c1e81e899cd0531f9b1c28a292669.tar.gz
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
Diffstat (limited to 'sys/sys/runq.h')
-rw-r--r--sys/sys/runq.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/sys/runq.h b/sys/sys/runq.h
index 20286c5..4636e7a 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
OpenPOWER on IntegriCloud