svn commit: r212747 - stable/8/sys/kern

Matthew D Fleming mdf at FreeBSD.org
Thu Sep 16 15:42:11 UTC 2010


Author: mdf
Date: Thu Sep 16 15:42:11 2010
New Revision: 212747
URL: http://svn.freebsd.org/changeset/base/212747

Log:
  MFC r212153: Fix UP build.

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	Thu Sep 16 15:22:33 2010	(r212746)
+++ stable/8/sys/kern/sched_ule.c	Thu Sep 16 15:42:11 2010	(r212747)
@@ -1803,8 +1803,10 @@ sched_switch(struct thread *td, struct t
 		srqflag = (flags & SW_PREEMPT) ?
 		    SRQ_OURSELF|SRQ_YIELDING|SRQ_PREEMPTED :
 		    SRQ_OURSELF|SRQ_YIELDING;
+#ifdef SMP
 		if (THREAD_CAN_MIGRATE(td) && !THREAD_CAN_SCHED(td, ts->ts_cpu))
 			ts->ts_cpu = sched_pickcpu(td, 0);
+#endif
 		if (ts->ts_cpu == cpuid)
 			tdq_runq_add(tdq, td, srqflag);
 		else {


More information about the svn-src-all mailing list