Home
last modified time | relevance | path

Searched refs:nrcpus (Results 1 – 4 of 4) sorted by relevance

/external/ltp/testcases/kernel/syscalls/sched_getaffinity/
Dsched_getaffinity01.c45 int nrcpus = 1024; in do_test() local
49 mask = CPU_ALLOC(nrcpus); in do_test()
53 len = CPU_ALLOC_SIZE(nrcpus); in do_test()
59 if (TST_ERR == EINVAL && nrcpus < (1024 << 8)) { in do_test()
60 nrcpus = nrcpus << 2; in do_test()
68 for (i = 0; i < nrcpus; i++) in do_test()
/external/ltp/testcases/kernel/syscalls/getcpu/
Dgetcpu01.c53 int nrcpus = 1024; in set_cpu_affinity() local
56 set = CPU_ALLOC(nrcpus); in set_cpu_affinity()
60 size = CPU_ALLOC_SIZE(nrcpus); in set_cpu_affinity()
64 if (errno == EINVAL && nrcpus < (1024 << 8)) { in set_cpu_affinity()
65 nrcpus = nrcpus << 2; in set_cpu_affinity()
/external/crosvm/x86_64/src/
Dcpuid.rs161 nrcpus: usize, in setup_cpuid()
168 filter_cpuid(vcpu_id, nrcpus, &mut cpuid, irq_chip, no_smt); in setup_cpuid()
/external/blktrace/btreplay/
Dbtreplay.c506 int nrcpus = 4096; in get_ncpus()
510 cpus = CPU_ALLOC(nrcpus); in get_ncpus()
511 size = CPU_ALLOC_SIZE(nrcpus); in get_ncpus()
515 if( errno == EINVAL && nrcpus < (4096<<4) ) { in get_ncpus()
517 nrcpus <<= 1; in get_ncpus()