btreplay: use sysconf to get the number of configured cpus
authorNathan Zimmer <nzimmer@sgi.com>
Mon, 15 Apr 2013 14:53:34 +0000 (09:53 -0500)
committerJens Axboe <axboe@kernel.dk>
Thu, 1 Aug 2013 18:13:26 +0000 (12:13 -0600)
commitfb69749415ae2bd7c3180605d01a5a39f3bd988f
treec73b96ce90568ef0a1ea59c977cf244275e5dee8
parent0c2df13d11dd91a1c3933dcc8faa98f2b59a5793
btreplay: use sysconf to get the number of configured cpus

We should use the standard methods for getting the number of cpus in the
system when they are available.  It is good practice to leave the old ways in
place for people stuck on older systems.

Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Nathan Zimmer <nzimmer@sgi.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
btreplay/btreplay.c