machdep.hlt_cpus undocumented sysctl
Craig Rodrigues
rodrigc at crodrigues.org
Sun Mar 7 19:49:37 PST 2004
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 at crodrigues.org
More information about the freebsd-amd64
mailing list