Lines Matching refs:nr_cpus
122 int nr_cpus; member
273 for (cpu = 0; cpu < g->p.nr_cpus; cpu++) in bind_to_cpu()
276 BUG_ON(target_cpu < 0 || target_cpu >= g->p.nr_cpus); in bind_to_cpu()
288 int cpus_per_node = g->p.nr_cpus / nr_numa_nodes(); in bind_to_node()
293 BUG_ON(cpus_per_node * nr_numa_nodes() != g->p.nr_cpus); in bind_to_node()
302 for (cpu = 0; cpu < g->p.nr_cpus; cpu++) in bind_to_node()
308 BUG_ON(cpu_stop > g->p.nr_cpus); in bind_to_node()
532 BUG_ON(step <= 0 || step >= g->p.nr_cpus); in parse_setup_cpu_list()
544 BUG_ON(bind_len <= 0 || bind_len > g->p.nr_cpus); in parse_setup_cpu_list()
557 if (bind_cpu_0 >= g->p.nr_cpus || bind_cpu_1 >= g->p.nr_cpus) { in parse_setup_cpu_list()
558 printf("\nTest not applicable, system has only %d CPUs.\n", g->p.nr_cpus); in parse_setup_cpu_list()
587 BUG_ON(cpu < 0 || cpu >= g->p.nr_cpus); in parse_setup_cpu_list()
1218 if (this_cpu < g->p.nr_cpus/2) in worker_thread()
1219 target_cpu = g->p.nr_cpus-1; in worker_thread()
1341 g->p.nr_tasks, g->p.nr_tasks == 1 ? "task" : "tasks", nr_numa_nodes(), g->p.nr_cpus); in print_summary()
1370 for (cpu = 0; cpu < g->p.nr_cpus; cpu++) in init_thread_data()
1389 g->p.nr_cpus = numa_num_configured_cpus(); in init()