summaryrefslogtreecommitdiffstats
path: root/sys/kern/sched_ule.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2010-09-21 19:12:22 +0000
committerjhb <jhb@FreeBSD.org>2010-09-21 19:12:22 +0000
commite350ad793087b30ced8e7d1458e45104406a7bee (patch)
treea46c301465857eead35a1ab8d1cc38188f074e9e /sys/kern/sched_ule.c
parenta709074512b3610411370da94e396a0b513f0433 (diff)
downloadFreeBSD-src-e350ad793087b30ced8e7d1458e45104406a7bee.zip
FreeBSD-src-e350ad793087b30ced8e7d1458e45104406a7bee.tar.gz
Comment nit, set TDF_NEEDRESCHED after the comment describing why it is
done rather than before. MFC after: 1 week
Diffstat (limited to 'sys/kern/sched_ule.c')
-rw-r--r--sys/kern/sched_ule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c
index b8fd89f..4765c1c 100644
--- a/sys/kern/sched_ule.c
+++ b/sys/kern/sched_ule.c
@@ -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
OpenPOWER on IntegriCloud