Date: Thu, 24 Jan 2008 15:14:38 -0500 From: John Baldwin <jhb@freebsd.org> To: freebsd-hackers@freebsd.org Cc: Pietro Cerutti <gahr@gahr.ch> Subject: Re: SMP in machine/params.h Message-ID: <200801241514.38603.jhb@freebsd.org> In-Reply-To: <479886CF.7040506@gahr.ch> References: <479886CF.7040506@gahr.ch>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 24 January 2008 07:38:39 am Pietro Cerutti wrote: > Hello, > > I'm running a Core2Duo on CURRENT, SMP kernel, but somehow the macro SMP > in machine/param.h 1.81 2006/01/09 line 68 is not defined, thus MAXCPU > is defined to 1. Any idea why? It is defined in opt_global.h for a kernel build, but it is not defined in userland. If you want to use MAXCPU in userland you should query the appropriate sysctl (kern.smp.maxcpu) instead. -- John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801241514.38603.jhb>