From owner-p4-projects@FreeBSD.ORG Tue Oct 22 20:14:09 2013 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id D90D8940; Tue, 22 Oct 2013 20:14:08 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 404B1860 for ; Tue, 22 Oct 2013 20:14:08 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from skunkworks.freebsd.org (skunkworks.freebsd.org [8.8.178.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2B77C24D2 for ; Tue, 22 Oct 2013 20:14:08 +0000 (UTC) Received: from skunkworks.freebsd.org ([127.0.1.74]) by skunkworks.freebsd.org (8.14.7/8.14.7) with ESMTP id r9MKE8Rn037419 for ; Tue, 22 Oct 2013 20:14:08 GMT (envelope-from jhb@freebsd.org) Received: (from perforce@localhost) by skunkworks.freebsd.org (8.14.7/8.14.6/Submit) id r9MKE8nZ037416 for perforce@freebsd.org; Tue, 22 Oct 2013 20:14:08 GMT (envelope-from jhb@freebsd.org) Date: Tue, 22 Oct 2013 20:14:08 GMT Message-Id: <201310222014.r9MKE8nZ037416@skunkworks.freebsd.org> X-Authentication-Warning: skunkworks.freebsd.org: perforce set sender to jhb@freebsd.org using -f From: John Baldwin Subject: PERFORCE change 1187077 for review To: Perforce Change Reviews Precedence: bulk X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.14 List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Oct 2013 20:14:09 -0000 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)); }