Author: jhb
Date: Tue Oct 12 15:26:13 2010
New Revision: 213721
URL: http://svn.freebsd.org/changeset/base/213721

Log:
  MFC 212974:
  Comment nit, set TDF_NEEDRESCHED after the comment describing why it is
  done rather than before.

Modified:
  stable/8/sys/kern/sched_ule.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/kern/sched_ule.c
==============================================================================
--- stable/8/sys/kern/sched_ule.c       Tue Oct 12 13:13:20 2010        
(r213720)
+++ stable/8/sys/kern/sched_ule.c       Tue Oct 12 15:26:13 2010        
(r213721)
@@ -2409,12 +2409,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_selected(1 << ts->ts_cpu, IPI_PREEMPT);
 #endif
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to