Revert the previous change. It works great for 4BSD but causes major

problems for ULE.  The reason is quite unknown and worrisome.
This commit is contained in:
Scott Long 2004-08-20 05:58:38 +00:00
parent 7a18f5c985
commit 2384290ced

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