PERFORCE change 146103 for review

John Baldwin jhb at FreeBSD.org
Mon Jul 28 11:40:50 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=146103

Change 146103 by jhb at jhb_zion on 2008/07/28 11:40:08

	Inherit the TDF_AFFINITY flag when inheriting the cpuset.  Hopefully
	this fixes the 'build world in a cpuset' case.

Affected files ...

.. //depot/projects/smpng/sys/kern/sched_4bsd.c#80 edit

Differences ...

==== //depot/projects/smpng/sys/kern/sched_4bsd.c#80 (text+ko) ====

@@ -738,6 +738,7 @@
 	childtd->td_estcpu = td->td_estcpu;
 	childtd->td_lock = &sched_lock;
 	childtd->td_cpuset = cpuset_ref(td->td_cpuset);
+	childtd->td_flags |= (td->td_flags & TDF_AFFINITY);
 	ts = childtd->td_sched;
 	bzero(ts, sizeof(*ts));
 }


More information about the p4-projects mailing list