mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +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:
parent
dd68efd05b
commit
6f96710c60
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=134417
@ -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) ||
|
||||||
|
Loading…
Reference in New Issue
Block a user