mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-04 07:31:11 +00:00
Propagate TDF_NEEDRESCHED to replacement thread in sched_switch().
Reviewed by: julian, jhb (in October) Approved by: sam (mentor) MFC after: 4 weeks
This commit is contained in:
parent
f4427f30f7
commit
5656474145
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=138527
|
@ -811,6 +811,9 @@ sched_switch(struct thread *td, struct thread *newtd, int flags)
|
|||
}
|
||||
}
|
||||
|
||||
if (newtd)
|
||||
newtd->td_flags |= (td->td_flags & TDF_NEEDRESCHED);
|
||||
|
||||
td->td_lastcpu = td->td_oncpu;
|
||||
td->td_flags &= ~TDF_NEEDRESCHED;
|
||||
td->td_pflags &= ~TDP_OWEPREEMPT;
|
||||
|
|
Loading…
Reference in a new issue