Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Mar 2004 22:49:45 -0500
From:      Craig Rodrigues <rodrigc@crodrigues.org>
To:        freebsd-amd64@freebsd.org
Subject:   Re: machdep.hlt_cpus undocumented sysctl
Message-ID:  <20040308034945.GA23612@crodrigues.org>
In-Reply-To: <200403060956.38738.peter@wemm.org>
References:  <20040305234734.GA11885@crodrigues.org> <200403060956.38738.peter@wemm.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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