1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-13 10:02:38 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=134417

View File

@ -522,6 +522,8 @@ 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) ||