2 # SPDX-License-Identifier: BSD-3-Clause
3 # Copyright(c) 2019 Intel Corporation
5 if [ "$(uname)" = "Linux" ] ; then
6 cat /sys/devices/system/cpu/present
7 elif [ "$(uname)" = "FreeBSD" ] ; then
8 ncpus=$(/sbin/sysctl -n hw.ncpu)
9 echo 0-$(expr $ncpus - 1)