commit | 671b060056d176f646280f1fd0c29d72f76183e6 | [log] [tgz] |
---|---|---|
author | Bruce Cran <bruce@cran.org.uk> | Mon Jan 21 10:57:59 2013 -0700 |
committer | Jens Axboe <axboe@kernel.dk> | Mon Jan 21 10:57:59 2013 -0700 |
tree | ec7f87f66c4598bdf300f60ed8145cd702e571fc | |
parent | 51aa2da8cf422a06ddfa1ce673f3bfc03f96b86e [diff] |
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>