PERFORCE change 146106 for review

John Baldwin jhb at FreeBSD.org
Mon Jul 28 12:25:35 UTC 2008


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

Change 146106 by jhb at jhb_zion on 2008/07/28 12:24:36

	Compile.

Affected files ...

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

Differences ...

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

@@ -1582,6 +1582,7 @@
 	 * Set the TSF_AFFINITY flag if there is at least one CPU this
 	 * thread can't run on.
 	 */
+	ts = td->td_sched;
 	ts->ts_flags &= ~TSF_AFFINITY;
 	for (cpu = 0; cpu <= mp_maxid; cpu++) {
 		if (CPU_ABSENT(cpu))
@@ -1608,7 +1609,6 @@
 		 * If we are on a per-CPU runqueue that is in the set,
 		 * then nothing needs to be done.
 		 */
-		ts = td->td_sched;
 		if (ts->ts_runq != &runq &&
 		    THREAD_CAN_SCHED(td, ts->ts_runq - runq_pcpu))
 			return;


More information about the p4-projects mailing list