diff options
author | Jeff Roberson <jeff@FreeBSD.org> | 2008-03-20 05:51:16 +0000 |
---|---|---|
committer | Jeff Roberson <jeff@FreeBSD.org> | 2008-03-20 05:51:16 +0000 |
commit | 9727e63745b3b2a4f341ed732c1e6814b9080d74 (patch) | |
tree | b3283509337b9f27197d7b64b1f5257d544ae49f /sys/sys/proc.h | |
parent | 788ef8117ce57447346abfd550d7021376138301 (diff) | |
download | src-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/proc.h')
-rw-r--r-- | sys/sys/proc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h index 8acb08478ca0..7b8786163872 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -174,8 +174,7 @@ struct thread { struct mtx *volatile td_lock; /* replaces sched lock */ struct proc *td_proc; /* (*) Associated process. */ TAILQ_ENTRY(thread) td_plist; /* (*) All threads in this proc. */ - - /* The two queues below should someday be merged. */ + TAILQ_ENTRY(thread) td_runq; /* (t) Run queue. */ TAILQ_ENTRY(thread) td_slpq; /* (t) Sleep queue. */ TAILQ_ENTRY(thread) td_lockq; /* (t) Lock queue. */ struct cpuset *td_cpuset; /* (t) CPU affinity mask. */ @@ -233,6 +232,7 @@ struct thread { /* Copied during fork1() or thread_sched_upcall(). */ #define td_startcopy td_endzero + u_char td_rqindex; /* (t) Run queue index. */ u_char td_base_pri; /* (t) Thread base kernel priority. */ u_char td_priority; /* (t) Thread active priority. */ u_char td_pri_class; /* (t) Scheduling class. */ |