From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 24 22:08:45 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 A5BA916A4DE for ; Thu, 24 Jan 2008 22:08:45 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail.speedfactory.net [66.23.216.219]) by mx1.freebsd.org (Postfix) with ESMTP id 4F9B813C457 for ; Thu, 24 Jan 2008 22:08:45 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.8s) with ESMTP id 229623442-1834499 for multiple; Thu, 24 Jan 2008 17:09:54 -0500 Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.14.2/8.14.2) with ESMTP id m0OM8gxE038715; Thu, 24 Jan 2008 17:08:42 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Thu, 24 Jan 2008 15:14:38 -0500 User-Agent: KMail/1.9.7 References: <479886CF.7040506@gahr.ch> In-Reply-To: <479886CF.7040506@gahr.ch> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801241514.38603.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Thu, 24 Jan 2008 17:08:42 -0500 (EST) X-Virus-Scanned: ClamAV 0.91.2/5545/Thu Jan 24 13:20:13 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Pietro Cerutti 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: Thu, 24 Jan 2008 22:08:45 -0000 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