variable mp_ncpu

Julian Elischer julian at elischer.org
Thu Apr 10 00:25:43 PDT 2003


Would it be possible to have the sysclt hw.ncpu 
always available, even in a UP kernel?

it is currently only valid in an SMP kernel
whichmeans that userland code that needs to know this has to do:

if (hw.ncpu exists)
  something(hw.ncpu)
else
  something(1)

having it always available would see a lot more consistant.

julian





More information about the freebsd-current mailing list