Home
last modified time | relevance | path

Searched refs:n_threads (Results 1 – 3 of 3) sorted by relevance

/kernel/linux/linux-5.10/samples/bpf/
Dxsk_fwd.c760 static int n_threads; variable
810 if (n_threads == MAX_THREADS) { in parse_args()
816 thread_data[n_threads].cpu_core_id = atoi(optarg); in parse_args()
817 n_threads++; in parse_args()
854 if (!n_threads) { in parse_args()
859 if (n_ports % n_threads) { in parse_args()
1021 for (i = 0; i < n_threads; i++) { in main()
1023 u32 n_ports_per_thread = n_ports / n_threads, j; in main()
1036 for (i = 0; i < n_threads; i++) { in main()
1071 for (i = 0; i < n_threads; i++) in main()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/cgroup/
Dtest_core.c548 int t, c_threads = 0, n_threads = 13; in test_cgcore_proc_migration() local
550 pthread_t threads[n_threads]; in test_cgcore_proc_migration()
565 for (c_threads = 0; c_threads < n_threads; ++c_threads) { in test_cgcore_proc_migration()
571 if (cg_read_lc(dst, "cgroup.threads") != n_threads + 1) in test_cgcore_proc_migration()
/kernel/linux/linux-5.10/arch/powerpc/kvm/
Dbook3s_hv.c2670 static void kvmppc_wait_for_nap(int n_threads) in kvmppc_wait_for_nap() argument
2675 if (n_threads <= 1) in kvmppc_wait_for_nap()
2684 for (i = 1; i < n_threads; ++i) in kvmppc_wait_for_nap()
2687 if (i == n_threads) { in kvmppc_wait_for_nap()
2694 for (i = 1; i < n_threads; ++i) in kvmppc_wait_for_nap()
2812 static bool subcore_config_ok(int n_subcores, int n_threads) in subcore_config_ok() argument
2819 return n_subcores <= 4 && n_threads == 1; in subcore_config_ok()
2833 return n_subcores * roundup_pow_of_two(n_threads) <= MAX_SMT_THREADS; in subcore_config_ok()
2847 int n_threads = vc->num_threads; in can_dynamic_split() local
2862 if (n_threads < cip->max_subcore_threads) in can_dynamic_split()
[all …]