PERFORCE change 1187077 for review

John Baldwin jhb at FreeBSD.org
Tue Oct 22 20:14:09 UTC 2013


http://p4web.freebsd.org/@@1187077?ac=10

Change 1187077 by jhb at jhb_jhbbsd on 2013/10/22 20:13:34

	Possible fix for idprio 31 problem.

Affected files ...

.. //depot/projects/smpng/sys/kern/sched_ule.c#127 edit

Differences ...

==== //depot/projects/smpng/sys/kern/sched_ule.c#127 (text+ko) ====

@@ -243,7 +243,7 @@
 	int		tdq_transferable;	/* Transferable thread count. */
 	short		tdq_switchcnt;		/* Switches this tick. */
 	short		tdq_oldswitchcnt;	/* Switches last tick. */
-	u_char		tdq_lowpri;		/* Lowest priority thread. */
+	u_short		tdq_lowpri;		/* Lowest priority thread. */
 	u_char		tdq_ipipending;		/* IPI pending. */
 	u_char		tdq_idx;		/* Current insert index. */
 	u_char		tdq_ridx;		/* Current removal index. */
@@ -2331,7 +2331,7 @@
 		tdq->tdq_lowpri = td->td_priority;
 		return (td);
 	}
-	tdq->tdq_lowpri = PRI_MAX_IDLE;
+	tdq->tdq_lowpri = PRI_MAX_IDLE + 1;
 	return (PCPU_GET(idlethread));
 }
 


More information about the p4-projects mailing list