- Remove a 4BSD specific hack since this will work on ULE too.
This commit is contained in:
parent
ceca9b8f9e
commit
862fb71e5e
@ -1150,7 +1150,6 @@ thread_switchout(struct thread *td, int flags, struct thread *nextthread)
|
|||||||
td->td_upcall = NULL;
|
td->td_upcall = NULL;
|
||||||
td->td_pflags &= ~TDP_CAN_UNBIND;
|
td->td_pflags &= ~TDP_CAN_UNBIND;
|
||||||
td2 = thread_schedule_upcall(td, ku);
|
td2 = thread_schedule_upcall(td, ku);
|
||||||
#ifdef SCHED_4BSD
|
|
||||||
if (flags & SW_INVOL || nextthread) {
|
if (flags & SW_INVOL || nextthread) {
|
||||||
setrunqueue(td2, SRQ_YIELDING);
|
setrunqueue(td2, SRQ_YIELDING);
|
||||||
} else {
|
} else {
|
||||||
@ -1159,9 +1158,6 @@ thread_switchout(struct thread *td, int flags, struct thread *nextthread)
|
|||||||
*/
|
*/
|
||||||
return td2;
|
return td2;
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
setrunqueue(td2, SRQ_YIELDING);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
return (nextthread);
|
return (nextthread);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user