diff options
author | julian <julian@FreeBSD.org> | 2003-02-27 02:05:19 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2003-02-27 02:05:19 +0000 |
commit | 3fc9836d46e83fd0a5d0daa46f5639be3db193c1 (patch) | |
tree | 91973dfb2c47deb06ea09f1614aa486db1bd95dd /sys/kern/kern_switch.c | |
parent | ef32e2b20964fad2388f8146483b4dc4bc569c2f (diff) | |
download | FreeBSD-src-3fc9836d46e83fd0a5d0daa46f5639be3db193c1.zip FreeBSD-src-3fc9836d46e83fd0a5d0daa46f5639be3db193c1.tar.gz |
Change the process flags P_KSES to be P_THREADED.
This is just a cosmetic change but I've been meaning to do it for about a year.
Diffstat (limited to 'sys/kern/kern_switch.c')
-rw-r--r-- | sys/kern/kern_switch.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/kern_switch.c b/sys/kern/kern_switch.c index e76c34b..a50fa60 100644 --- a/sys/kern/kern_switch.c +++ b/sys/kern/kern_switch.c @@ -127,7 +127,7 @@ retry: td = ke->ke_thread; KASSERT((td->td_kse == ke), ("kse/thread mismatch")); kg = ke->ke_ksegrp; - if (td->td_proc->p_flag & P_KSES) { + if (td->td_proc->p_flag & P_THREADED) { TAILQ_REMOVE(&kg->kg_runq, td, td_runq); if (kg->kg_last_assigned == td) { kg->kg_last_assigned = TAILQ_PREV(td, @@ -255,7 +255,7 @@ remrunqueue(struct thread *td) /* * If it is not a threaded process, take the shortcut. */ - if ((td->td_proc->p_flag & P_KSES) == 0) { + if ((td->td_proc->p_flag & P_THREADED) == 0) { /* Bring its kse with it, leave the thread attached */ sched_rem(ke); ke->ke_state = KES_THREAD; @@ -298,7 +298,7 @@ adjustrunqueue( struct thread *td, int newpri) /* * If it is not a threaded process, take the shortcut. */ - if ((td->td_proc->p_flag & P_KSES) == 0) { + if ((td->td_proc->p_flag & P_THREADED) == 0) { /* We only care about the kse in the run queue. */ td->td_priority = newpri; if (ke->ke_rqindex != (newpri / RQ_PPQ)) { @@ -339,7 +339,7 @@ setrunqueue(struct thread *td) TD_SET_RUNQ(td); kg = td->td_ksegrp; kg->kg_runnable++; - if ((td->td_proc->p_flag & P_KSES) == 0) { + if ((td->td_proc->p_flag & P_THREADED) == 0) { /* * Common path optimisation: Only one of everything * and the KSE is always already attached. @@ -659,7 +659,7 @@ thread_sanity_check(struct thread *td, char *string) } } - if ((p->p_flag & P_KSES) == 0) { + if ((p->p_flag & P_THREADED) == 0) { if (ke == NULL) { panc(string, "non KSE thread lost kse"); } |