Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Oct 2013 20:14:08 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 1187077 for review
Message-ID:  <201310222014.r9MKE8nZ037416@skunkworks.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@1187077?ac=10

Change 1187077 by jhb@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));
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310222014.r9MKE8nZ037416>