Re: SMP in machine/params.h
- From: Pietro Cerutti <gahr@xxxxxxx>
- Date: Fri, 25 Jan 2008 01:00:00 +0100
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 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.
Thanks for the clarification!
--
Pietro Cerutti
PGP Public Key:
http://gahr.ch/pgp
Attachment:
signature.asc
Description: OpenPGP digital signature
- References:
- SMP in machine/params.h
- From: Pietro Cerutti
- Re: SMP in machine/params.h
- From: John Baldwin
- SMP in machine/params.h
- Prev by Date: Re: FreeBSD hacker 101
- Next by Date: Wrapper for Windows-only network card binary drivers on FreeBSD?
- Previous by thread: Re: SMP in machine/params.h
- Next by thread: sysctl text definitions.
- Index(es):