Backout the previous backout (with scott's ok). sched_ule.c:1.122 is

believed to fix the problem with ULE that this change triggered.
This commit is contained in:
Peter Wemm 2004-08-28 01:04:44 +00:00
parent dd68efd05b
commit 6f96710c60

View File

@ -522,6 +522,8 @@ maybe_preempt(struct thread *td)
* to the new thread. * to the new thread.
*/ */
ctd = curthread; ctd = curthread;
if (ctd->td_kse == NULL || ctd->td_kse->ke_thread != ctd)
return (0);
pri = td->td_priority; pri = td->td_priority;
cpri = ctd->td_priority; cpri = ctd->td_priority;
if (pri >= cpri || cold /* || dumping */ || TD_IS_INHIBITED(ctd) || if (pri >= cpri || cold /* || dumping */ || TD_IS_INHIBITED(ctd) ||