Fix _SC_NPROCESSORS_ONLN on Windows
authorBruce Cran <bruce@cran.org.uk>
Mon, 21 Jan 2013 17:57:59 +0000 (10:57 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 21 Jan 2013 17:57:59 +0000 (10:57 -0700)
commit671b060056d176f646280f1fd0c29d72f76183e6
treeec7f87f66c4598bdf300f60ed8145cd702e571fc
parent51aa2da8cf422a06ddfa1ce673f3bfc03f96b86e
Fix _SC_NPROCESSORS_ONLN on Windows

_SC_NPROCESSORS_ONLN was returning the wrong value on Windows because
GetLogicalProcessorInformation() returns data about caches, nodes and
packages in addition to processors.

Modified by Jens to use hweight32()

Signed-off-by: Jens Axboe <axboe@kernel.dk>
os/windows/posix.c