From a8103ae8ca73de1dacf66fd1cc7cdee5e0a77096 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Tue, 21 Sep 2010 19:12:22 +0000 Subject: [PATCH] Comment nit, set TDF_NEEDRESCHED after the comment describing why it is done rather than before. MFC after: 1 week --- sys/kern/sched_ule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c index b8fd89f863e..4765c1cc698 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