diff options
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"); } |