Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Jan 2008 01:00:00 +0100
From:      Pietro Cerutti <gahr@gahr.ch>
To:        John Baldwin <jhb@freebsd.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: SMP in machine/params.h
Message-ID:  <47992680.5040208@gahr.ch>
In-Reply-To: <200801241514.38603.jhb@freebsd.org>
References:  <479886CF.7040506@gahr.ch> <200801241514.38603.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig41CD985A1F0CC8A5E66ADDD6
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: quoted-printable

John Baldwin wrote:
> 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 S=
MP
>> in machine/param.h 1.81 2006/01/09 line 68 is not defined, thus MAXCPU=

>> is defined to 1. Any idea why?
>=20
> It is defined in opt_global.h for a kernel build, but it is not defined=
 in=20
> userland.  If you want to use MAXCPU in userland you should query the=20
> appropriate sysctl (kern.smp.maxcpu) instead.
>=20

Thanks for the clarification!

--=20
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp


--------------enig41CD985A1F0CC8A5E66ADDD6
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQFHmSaJwMJqmJVx944RCjUCAJ9viRTFTUmGtPLfChiuKdLqXp6crQCaAhHC
XlZxiMp6rHLCzCrmXNg4U6Y=
=Bjnz
-----END PGP SIGNATURE-----

--------------enig41CD985A1F0CC8A5E66ADDD6--



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