/third_party/ltp/testcases/kernel/irq/ |
D | irqbalance01.c | 54 static unsigned int nr_cpus; variable 98 nr_cpus = 0; in collect_irq_info() 106 nr_cpus++; in collect_irq_info() 129 tst_res(TINFO, "Found %u CPUS, %u IRQs", nr_cpus, nr_irqs); in collect_irq_info() 133 nr_cpus * (nr_irqs + 1) * sizeof(*irq_stats)); in collect_irq_info() 135 nr_cpus * nr_irqs * sizeof(*irq_affinity)); in collect_irq_info() 148 irq_stats[row * nr_cpus + col] = acc; in collect_irq_info() 182 for (col = 0; col < nr_cpus; col++) { in collect_irq_info() 186 cpu_total += irq_stats[row * nr_cpus + col]; in collect_irq_info() 188 irq_stats[row * nr_cpus + col] = cpu_total; in collect_irq_info() [all …]
|
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_base_ops_test/ |
D | cpuset_base_ops_testset.sh | 33 nr_cpus=$NR_CPUS 112 $nr_cpus WRITE_ERROR 113 $cpus_all 0-$((nr_cpus-1)) 114 ${cpus_all}$nr_cpus WRITE_ERROR 117 0-$((nr_cpus-1)) 0-$((nr_cpus-1)) 119 0-$nr_cpus WRITE_ERROR 120 0--$((nr_cpus-1)) WRITE_ERROR 126 if [ $nr_cpus -ge 3 ]; then
|
/third_party/ltp/testcases/kernel/tracing/ftrace_test/ftrace_stress/ |
D | ftrace_tracing_cpumask.sh | 25 nr_cpus=`tst_ncpus` 29 if [ $nr_cpus -gt 32 ]; then 30 group_cnt=$((nr_cpus / 32)) 32 rem=$((nr_cpus % 32)) 38 range=$((nr_cpus - 1))
|
D | ftrace_trace_stat.sh | 19 nr_cpus=`tst_ncpus` 36 cpu=$(tst_random 0 $((nr_cpus - 1)))
|
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_load_balance_test/ |
D | cpuset_cpu_hog.c | 116 long nr_cpus = 0; in checkopt() local 119 nr_cpus = sysconf(_SC_NPROCESSORS_ONLN); in checkopt() 120 if (nr_cpus <= 0) { in checkopt() 149 nprocs = 2 * nr_cpus; in checkopt()
|
D | cpuset_sched_domains_test.sh | 35 nr_cpus=$NR_CPUS
|
D | cpuset_load_balance_test.sh | 35 nr_cpus=$NR_CPUS
|
/third_party/mesa3d/src/util/ |
D | u_cpu_detect.h | 76 int16_t nr_cpus; member
|
D | u_cpu_detect.c | 672 util_cpu_caps.nr_cpus = MAX2(1, available_cpus); in util_cpu_detect_once() 673 total_cpus = MAX2(total_cpus, util_cpu_caps.nr_cpus); in util_cpu_detect_once() 825 printf("util_cpu_caps.nr_cpus = %u\n", util_cpu_caps.nr_cpus); in util_cpu_detect_once()
|
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_inherit_test/ |
D | cpuset_inherit_testset.sh | 33 nr_cpus=$NR_CPUS
|
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_hotplug_test/ |
D | cpuset_hotplug_test.sh | 35 nr_cpus=$NR_CPUS
|
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_memory_spread_test/ |
D | cpuset_memory_spread_testset.sh | 34 nr_cpus=$NR_CPUS
|
/third_party/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_screen.c | 1077 screen->num_threads = util_get_cpu_caps()->nr_cpus > 1 ? util_get_cpu_caps()->nr_cpus : 0; in llvmpipe_create_screen()
|
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_hierarchy_test/ |
D | cpuset_hierarchy_test.sh | 33 nr_cpus=$NR_CPUS
|
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_memory_test/ |
D | cpuset_memory_testset.sh | 35 nr_cpus=$NR_CPUS
|
/third_party/mesa3d/src/gallium/drivers/iris/ |
D | iris_screen.c | 904 unsigned hw_threads = caps->nr_cpus; in iris_screen_create()
|
/third_party/mesa3d/src/gallium/drivers/etnaviv/ |
D | etnaviv_shader.c | 589 unsigned num_threads = util_get_cpu_caps()->nr_cpus - 1; in etna_shader_screen_init()
|
/third_party/ltp/testcases/kernel/controllers/cpuctl/ |
D | cpuctl_testplan.txt | 170 sysctl_sched_wakeup_granularity = (1 + ln(nr_cpus))*default_gran_logic.
|
/third_party/mesa3d/src/gallium/drivers/zink/ |
D | zink_screen.c | 2142 …n->threaded = util_get_cpu_caps()->nr_cpus > 1 && debug_get_bool_option("GALLIUM_THREAD", util_get… in zink_internal_create_screen()
|
/third_party/libbpf/src/ |
D | libbpf.c | 5563 int nr_cpus; local 5565 nr_cpus = libbpf_num_possible_cpus(); 5566 if (nr_cpus < 0) { 5568 map->name, nr_cpus); 5569 return nr_cpus; 5571 pr_debug("map '%s': setting size to %d\n", map->name, nr_cpus); 5572 map->def.max_entries = nr_cpus;
|
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_pipe.c | 1213 hw_threads = caps->nr_cpus; in radeonsi_screen_create_impl()
|
/third_party/mesa3d/src/gallium/auxiliary/util/ |
D | u_threaded_context.c | 4409 if (!debug_get_bool_option("GALLIUM_THREAD", util_get_cpu_caps()->nr_cpus > 1)) in threaded_context_create()
|
/third_party/mesa3d/docs/relnotes/ |
D | 21.2.0.rst | 2728 - util: Fix setting nr_cpus on some BSD variants
|