Lines Matching +full:- +full:- +full:cpus
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
29 long ncpus = -1; in tst_ncpus()
33 tst_brkm(TBROK, NULL, "could not determine number of CPUs online"); in tst_ncpus()
40 long ncpus_conf = -1; in tst_ncpus_conf()
44 tst_brkm(TBROK, NULL, "could not determine number of CPUs configured"); in tst_ncpus_conf()
53 long ncpus_max = -1; in tst_ncpus_max()
57 * possible CPUs the OS or hardware can support, which can be larger in tst_ncpus_max()
62 * represents NR_CPUS-1, a compile time option which specifies in tst_ncpus_max()
63 * "maximum number of CPUs which this kernel will support". in tst_ncpus_max()
68 * configuration, so # of cpus allowed by config is +1 */ in tst_ncpus_max()
82 cpu_set_t *cpus = CPU_ALLOC(ncpus); in tst_ncpus_available() local
84 if (!cpus) in tst_ncpus_available()
87 if (sched_getaffinity(0, cpusz, cpus)) { in tst_ncpus_available()
89 cpusz, (size_t)cpus); in tst_ncpus_available()
91 ncpus = CPU_COUNT_S(cpusz, cpus); in tst_ncpus_available()
93 CPU_FREE(cpus); in tst_ncpus_available()