From owner-freebsd-amd64@FreeBSD.ORG Sun Mar 7 19:49:37 2004 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E71116A4CE for ; Sun, 7 Mar 2004 19:49:37 -0800 (PST) Received: from sccrmhc11.comcast.net (sccrmhc11.comcast.net [204.127.202.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3223743D39 for ; Sun, 7 Mar 2004 19:49:37 -0800 (PST) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: from dibbler.crodrigues.org (h00609772adf0.ne.client2.attbi.com[66.31.45.197]) by comcast.net (sccrmhc11) with ESMTP id <2004030803493601100g8sqee>; Mon, 8 Mar 2004 03:49:36 +0000 Received: from dibbler.crodrigues.org (localhost.crodrigues.org [127.0.0.1]) i283nktI023635 for ; Sun, 7 Mar 2004 22:49:46 -0500 (EST) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost) by dibbler.crodrigues.org (8.12.11/8.12.10/Submit) id i283nj8r023634 for freebsd-amd64@freebsd.org; Sun, 7 Mar 2004 22:49:45 -0500 (EST) (envelope-from rodrigc) Date: Sun, 7 Mar 2004 22:49:45 -0500 From: Craig Rodrigues To: freebsd-amd64@freebsd.org Message-ID: <20040308034945.GA23612@crodrigues.org> References: <20040305234734.GA11885@crodrigues.org> <200403060956.38738.peter@wemm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200403060956.38738.peter@wemm.org> User-Agent: Mutt/1.4.1i Subject: Re: machdep.hlt_cpus undocumented sysctl X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Mar 2004 03:49:37 -0000 On Sat, Mar 06, 2004 at 09:56:38AM -0800, Peter Wemm wrote: > Its a user settable bitmap of cpus that you want to stop running > processes and halt. For example, if you set it to 14, thats binary > 00001110.. that will halt cpu 1,2,3 but leave cpu 0 running. Wow, that info is very useful, and I would not have figured that out on my own. Would this be an acceptable way to document the sysctl? --- sys/amd64/amd64/mp_machdep.c.orig Sun Mar 7 22:40:41 2004 +++ sys/amd64/amd64/mp_machdep.c Sun Mar 7 22:46:50 2004 @@ -1015,7 +1015,7 @@ return (error); } SYSCTL_PROC(_machdep, OID_AUTO, hlt_cpus, CTLTYPE_INT|CTLFLAG_RW, - 0, 0, sysctl_hlt_cpus, "IU", ""); + 0, 0, sysctl_hlt_cpus, "IU", "Bitmap of CPUs to halt. 101 (binary) will halt CPUs 0 and 2."); static int sysctl_hlt_logical_cpus(SYSCTL_HANDLER_ARGS) -- Craig Rodrigues http://crodrigues.org rodrigc@crodrigues.org