eal/bsd: query the cpu count only once
authorBruce Richardson <bruce.richardson@intel.com>
Thu, 23 Mar 2017 15:09:58 +0000 (15:09 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 27 Mar 2017 21:56:58 +0000 (23:56 +0200)
commit6f6d2a66f8d370c07efe85b08ca93ec3728a2d01
tree211d58d73e98bd579f305a341fe2e3bae987322f
parenta3e34aa85dbc2aeefc0ea2ddbea50f41748d2e13
eal/bsd: query the cpu count only once

Rather than querying the number of CPUs on the system multiple times, and
printing out the number each time, just query the value from sysctl once
and store it for future reuse.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_eal/bsdapp/eal/eal_lcore.c