From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 25 00:00:19 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6D95E16A421 for ; Fri, 25 Jan 2008 00:00:19 +0000 (UTC) (envelope-from gahr@gahr.ch) Received: from cpanel03.rubas-s03.net (cpanel03.rubas-s03.net [195.182.222.73]) by mx1.freebsd.org (Postfix) with ESMTP id 229F413C4CE for ; Fri, 25 Jan 2008 00:00:19 +0000 (UTC) (envelope-from gahr@gahr.ch) Received: from 80-218-191-236.dclient.hispeed.ch ([80.218.191.236] helo=gahrtop.localhost) by cpanel03.rubas-s03.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1JIBzU-00043Q-RK; Fri, 25 Jan 2008 01:00:16 +0100 Message-ID: <47992680.5040208@gahr.ch> Date: Fri, 25 Jan 2008 01:00:00 +0100 From: Pietro Cerutti User-Agent: Thunderbird 2.0.0.9 (X11/20071121) MIME-Version: 1.0 To: John Baldwin References: <479886CF.7040506@gahr.ch> <200801241514.38603.jhb@freebsd.org> In-Reply-To: <200801241514.38603.jhb@freebsd.org> X-Enigmail-Version: 0.95.5 OpenPGP: id=9571F78E; url=http://www.gahr.ch/pgp Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig41CD985A1F0CC8A5E66ADDD6" X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel03.rubas-s03.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - gahr.ch X-Source: X-Source-Args: X-Source-Dir: Cc: freebsd-hackers@freebsd.org Subject: Re: SMP in machine/params.h X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jan 2008 00:00:19 -0000 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--