aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/runq.h
diff options
context:
space:
mode:
authorJeff Roberson <jeff@FreeBSD.org>2008-03-20 05:51:16 +0000
committerJeff Roberson <jeff@FreeBSD.org>2008-03-20 05:51:16 +0000
commit9727e63745b3b2a4f341ed732c1e6814b9080d74 (patch)
treeb3283509337b9f27197d7b64b1f5257d544ae49f /sys/sys/runq.h
parent788ef8117ce57447346abfd550d7021376138301 (diff)
downloadsrc-9727e63745b3b2a4f341ed732c1e6814b9080d74.tar.gz
src-9727e63745b3b2a4f341ed732c1e6814b9080d74.zip
- Restore runq to manipulating threads directly by putting runq links and
rqindex back in struct thread. - Compile kern_switch.c independently again and stop #include'ing it from schedulers. - Remove the ts_thread backpointers and convert most code to go from struct thread to struct td_sched. - Cleanup the ts_flags #define garbage that was causing us to sometimes do things that expanded to td->td_sched->ts_thread->td_flags in 4BSD. - Export the kern.sched sysctl node in sysctl.h
Notes
Notes: svn path=/head/; revision=177435
Diffstat (limited to 'sys/sys/runq.h')
-rw-r--r--sys/sys/runq.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/sys/runq.h b/sys/sys/runq.h
index 4d46bb7039cd..50c00eb69442 100644
--- a/sys/sys/runq.h
+++ b/sys/sys/runq.h
@@ -31,7 +31,7 @@
#include <machine/runq.h>
-struct td_sched;
+struct thread;
/*
* Run queue parameters.
@@ -43,7 +43,7 @@ struct td_sched;
/*
* Head of run queues.
*/
-TAILQ_HEAD(rqhead, td_sched);
+TAILQ_HEAD(rqhead, thread);
/*
* Bit array which maintains the status of a run queue. When a queue is
@@ -62,14 +62,14 @@ struct runq {
struct rqhead rq_queues[RQ_NQS];
};
-void runq_add(struct runq *, struct td_sched *, int);
-void runq_add_pri(struct runq *, struct td_sched *, u_char, int);
+void runq_add(struct runq *, struct thread *, int);
+void runq_add_pri(struct runq *, struct thread *, u_char, int);
int runq_check(struct runq *);
-struct td_sched *runq_choose(struct runq *);
-struct td_sched *runq_choose_from(struct runq *, u_char);
-struct td_sched *runq_choose_fuzz(struct runq *, int);
+struct thread *runq_choose(struct runq *);
+struct thread *runq_choose_from(struct runq *, u_char);
+struct thread *runq_choose_fuzz(struct runq *, int);
void runq_init(struct runq *);
-void runq_remove(struct runq *, struct td_sched *);
-void runq_remove_idx(struct runq *, struct td_sched *, u_char *);
+void runq_remove(struct runq *, struct thread *);
+void runq_remove_idx(struct runq *, struct thread *, u_char *);
#endif