cvs commit: src/sys/kern subr_smp.c

Alfred Perlstein alfred at FreeBSD.org
Tue Dec 23 16:17:59 PST 2003


* John Baldwin <jhb at FreeBSD.org> [031223 09:04] wrote:
> 
> On 23-Dec-2003 Alfred Perlstein wrote:
> > alfred      2003/12/23 05:54:16 PST
> > 
> >   FreeBSD src repository
> > 
> >   Modified files:
> >     sys/kern             subr_smp.c 
> >   Log:
> >   Introduce mp_maxcpus which can be used by libkvm utils to find out
> >   how many CPUs the system was compiled for.
> >   Export the variable via a sysctl node 'kern.smp.maxcpus' as well.
> 
> Why does libkvm care about more than mp_maxid?

See mbuf.c from netstat(1).  basically some arrays in the kernel
are based on MAXCPU so it has to know how much to copy.

- Alfred Perlstein
- Research Engineering Development Inc.
- email: bright at mu.org cell: 408-480-4684


More information about the cvs-all mailing list