variable mp_ncpu

From: Julian Elischer <julian_at_elischer.org>
Date: Thu, 10 Apr 2003 00:25:39 -0700 (PDT)
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
Received on Wed Apr 09 2003 - 22:25:43 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:03 UTC