Home
last modified time | relevance | path

Searched refs:nr_cpus (Results 1 – 23 of 23) sorted by relevance

/third_party/ltp/testcases/kernel/irq/
Dirqbalance01.c54 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/
Dcpuset_base_ops_testset.sh33 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/
Dftrace_tracing_cpumask.sh25 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))
Dftrace_trace_stat.sh19 nr_cpus=`tst_ncpus`
36 cpu=$(tst_random 0 $((nr_cpus - 1)))
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_load_balance_test/
Dcpuset_cpu_hog.c116 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()
Dcpuset_sched_domains_test.sh35 nr_cpus=$NR_CPUS
Dcpuset_load_balance_test.sh35 nr_cpus=$NR_CPUS
/third_party/mesa3d/src/util/
Du_cpu_detect.h76 int16_t nr_cpus; member
Du_cpu_detect.c672 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/
Dcpuset_inherit_testset.sh33 nr_cpus=$NR_CPUS
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_hotplug_test/
Dcpuset_hotplug_test.sh35 nr_cpus=$NR_CPUS
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_memory_spread_test/
Dcpuset_memory_spread_testset.sh34 nr_cpus=$NR_CPUS
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_screen.c1077 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/
Dcpuset_hierarchy_test.sh33 nr_cpus=$NR_CPUS
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_memory_test/
Dcpuset_memory_testset.sh35 nr_cpus=$NR_CPUS
/third_party/mesa3d/src/gallium/drivers/iris/
Diris_screen.c904 unsigned hw_threads = caps->nr_cpus; in iris_screen_create()
/third_party/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_shader.c589 unsigned num_threads = util_get_cpu_caps()->nr_cpus - 1; in etna_shader_screen_init()
/third_party/ltp/testcases/kernel/controllers/cpuctl/
Dcpuctl_testplan.txt170 sysctl_sched_wakeup_granularity = (1 + ln(nr_cpus))*default_gran_logic.
/third_party/mesa3d/src/gallium/drivers/zink/
Dzink_screen.c2142 …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/
Dlibbpf.c5563 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/
Dsi_pipe.c1213 hw_threads = caps->nr_cpus; in radeonsi_screen_create_impl()
/third_party/mesa3d/src/gallium/auxiliary/util/
Du_threaded_context.c4409 if (!debug_get_bool_option("GALLIUM_THREAD", util_get_cpu_caps()->nr_cpus > 1)) in threaded_context_create()
/third_party/mesa3d/docs/relnotes/
D21.2.0.rst2728 - util: Fix setting nr_cpus on some BSD variants