Lines Matching full:cpus
6 * subset of cpus, as well as only executing the tests on those cpus.
93 cpu_set_t *cpus = (cpu_set_t *)arg; in test_zicbom() local
97 rc = riscv_hwprobe(&pair, 1, sizeof(cpu_set_t), (unsigned long *)cpus, 0); in test_zicbom()
117 cpu_set_t *cpus = (cpu_set_t *)arg; in test_zicboz() local
122 rc = riscv_hwprobe(&pair, 1, sizeof(cpu_set_t), (unsigned long *)cpus, 0); in test_zicboz()
160 static void check_no_zicbo_cpus(cpu_set_t *cpus, __u64 cbo) in check_no_zicbo_cpus() argument
170 while (i++ < CPU_COUNT(cpus)) { in check_no_zicbo_cpus()
171 while (!CPU_ISSET(c, cpus)) in check_no_zicbo_cpus()
219 cpu_set_t cpus; in main() local
231 rc = sched_getaffinity(0, sizeof(cpu_set_t), &cpus); in main()
237 rc = riscv_hwprobe(&pair, 1, sizeof(cpu_set_t), (unsigned long *)&cpus, 0); in main()
246 check_no_zicbo_cpus(&cpus, RISCV_HWPROBE_EXT_ZICBOZ); in main()
253 check_no_zicbo_cpus(&cpus, RISCV_HWPROBE_EXT_ZICBOM); in main()
266 tests[i].test_fn(&cpus); in main()