mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Comment nit, set TDF_NEEDRESCHED after the comment describing why it is
done rather than before. MFC after: 1 week
This commit is contained in:
parent
fc05868abd
commit
a8103ae8ca
1 changed files with 1 additions and 1 deletions
|
|
@ -2404,12 +2404,12 @@ sched_affinity(struct thread *td)
|
|||
}
|
||||
if (!TD_IS_RUNNING(td))
|
||||
return;
|
||||
td->td_flags |= TDF_NEEDRESCHED;
|
||||
/*
|
||||
* Force a switch before returning to userspace. If the
|
||||
* target thread is not running locally send an ipi to force
|
||||
* the issue.
|
||||
*/
|
||||
td->td_flags |= TDF_NEEDRESCHED;
|
||||
if (td != curthread)
|
||||
ipi_cpu(ts->ts_cpu, IPI_PREEMPT);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue