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
988b22e8cb
commit
e2f469b728
@ -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…
x
Reference in New Issue
Block a user