diff options
author | jeff <jeff@FreeBSD.org> | 2008-03-20 05:51:16 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2008-03-20 05:51:16 +0000 |
commit | a3f8e0c20d89c07e4e86027914f9727f7b82e74d (patch) | |
tree | b3283509337b9f27197d7b64b1f5257d544ae49f /sys/sys/runq.h | |
parent | 47245103b0a62e47623f5c9de2af31546fa87d8c (diff) | |
download | FreeBSD-src-a3f8e0c20d89c07e4e86027914f9727f7b82e74d.zip FreeBSD-src-a3f8e0c20d89c07e4e86027914f9727f7b82e74d.tar.gz |
- 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
Diffstat (limited to 'sys/sys/runq.h')
-rw-r--r-- | sys/sys/runq.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/sys/runq.h b/sys/sys/runq.h index 4d46bb7..50c00eb 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 |