From owner-freebsd-current@FreeBSD.ORG Thu Jul 10 14:21:26 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6451C37B401 for ; Thu, 10 Jul 2003 14:21:26 -0700 (PDT) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4253F43F93 for ; Thu, 10 Jul 2003 14:21:25 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from katana.zip.com.au (katana.zip.com.au [61.8.7.246]) by mailman.zeta.org.au (8.9.3p2/8.8.7) with ESMTP id HAA15105; Fri, 11 Jul 2003 07:21:17 +1000 Date: Fri, 11 Jul 2003 07:21:16 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Julian Elischer In-Reply-To: Message-ID: <20030711070631.C27297@gamplex.bde.org> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: FreeBSD current users Subject: Re: small scheduler hack/patch X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jul 2003 21:21:26 -0000 On Thu, 10 Jul 2003, Julian Elischer wrote: > I have a small "proof of concept" scheduler hack at: > http://www.freebsd.org/~julian/it.diff > ... > It's only implemented for SMP/i386 as the code to halt the cpu is only > present (from my quick view) in x86 and it doesn't make sense in UP.. ipi_selected() is essentially MI although it is declared in and takes MD arg types, since it is used in subr_smp.c and subr_smp.c is MI by definition. Its second arg is u_int64_t on alphas, int on ia64's, and u_int on other arches. This isn't a problem since the arg is always a #define'd value like IPI_AST and these values have MD definitions. Its first arg has type u_int64_t on ia64's and u_int on other arches. This is bogus for ia64's since subr_smp.c uses u_int for all bitmaps of CPUs, so systems with more than 32 CPUs cannot actually work. Bruce