Home
last modified time | relevance | path

Searched refs:max_threads (Results 1 – 12 of 12) sorted by relevance

/linux/tools/perf/bench/
H A Dsynthesize.c26 static unsigned int max_threads = UINT_MAX; variable
37 OPT_UINTEGER('M', "max-threads", &max_threads,
224 if (max_threads == UINT_MAX) in run_multi_threaded()
225 max_threads = sysconf(_SC_NPROCESSORS_ONLN); in run_multi_threaded()
232 nr_threads_synthesize <= max_threads; in run_multi_threaded()
/linux/include/linux/
H A Dcpu_smt.h18 unsigned int max_threads);
27 unsigned int max_threads) { } in cpu_smt_set_num_threads() argument
/linux/tools/perf/util/
H A Dthread_map.c78 int max_threads = 32, items, i; in thread_map__new_all_cpus() local
81 struct perf_thread_map *threads = thread_map__alloc(max_threads); in thread_map__new_all_cpus()
107 while (threads->nr + items >= max_threads) { in thread_map__new_all_cpus()
108 max_threads *= 2; in thread_map__new_all_cpus()
115 tmp = perf_thread_map__realloc(threads, max_threads); in thread_map__new_all_cpus()
/linux/drivers/gpu/drm/radeon/
H A Drv770.c1199 rdev->config.rv770.max_threads = 248; in rv770_gpu_init()
1219 rdev->config.rv770.max_threads = 248; in rv770_gpu_init()
1243 rdev->config.rv770.max_threads = 192; in rv770_gpu_init()
1263 rdev->config.rv770.max_threads = 248; in rv770_gpu_init()
1505 sq_thread_resource_mgmt = (NUM_PS_THREADS((rdev->config.rv770.max_threads * 4)/8) | in rv770_gpu_init()
1506 NUM_VS_THREADS((rdev->config.rv770.max_threads * 2)/8) | in rv770_gpu_init()
1507 NUM_ES_THREADS((rdev->config.rv770.max_threads * 1)/8)); in rv770_gpu_init()
1508 if (((rdev->config.rv770.max_threads * 1) / 8) > rdev->config.rv770.max_gs_threads) in rv770_gpu_init()
H A Dni.c887 rdev->config.cayman.max_threads = 256; in cayman_gpu_init()
965 rdev->config.cayman.max_threads = 256; in cayman_gpu_init()
H A Dr600.c2012 rdev->config.r600.max_threads = 192; in r600_gpu_init()
2028 rdev->config.r600.max_threads = 192; in r600_gpu_init()
2046 rdev->config.r600.max_threads = 192; in r600_gpu_init()
2061 rdev->config.r600.max_threads = 192; in r600_gpu_init()
/linux/net/sunrpc/
H A Dsvc.c809 unsigned int min_threads, unsigned int max_threads) in svc_set_pool_threads() argument
817 if (min_threads > max_threads) in svc_set_pool_threads()
818 min_threads = max_threads; in svc_set_pool_threads()
821 pool->sp_nrthrmax = max_threads; in svc_set_pool_threads()
828 if (pool->sp_nrthreads > max_threads) in svc_set_pool_threads()
829 delta = max_threads; in svc_set_pool_threads()
835 delta = max_threads; in svc_set_pool_threads()
/linux/kernel/
H A Dfork.c146 static int max_threads __read_mostly; /* tunable limit on nr_threads */
832 max_threads = clamp_t(u64, threads, MIN_THREADS, MAX_THREADS); in set_max_threads()
876 init_task.signal->rlim[RLIMIT_NPROC].rlim_cur = max_threads/2; in fork_init()
877 init_task.signal->rlim[RLIMIT_NPROC].rlim_max = max_threads/2; in fork_init()
882 init_user_ns.ucount_max[i] = max_threads/2; in fork_init()
2193 if (data_race(nr_threads >= max_threads)) in copy_process()
3397 int threads = max_threads; in sysctl_max_threads()
3410 max_threads = threads;
/linux/include/linux/sunrpc/
H A Dsvc.h467 unsigned int min_threads, unsigned int max_threads);
/linux/mm/
H A Dmm_init.c2040 int max_threads = deferred_page_init_max_threads(cpumask); in deferred_init_memmap() local
2080 .max_threads = max_threads, in deferred_init_memmap()
H A Dhugetlb.c3351 .max_threads = num_node_state(N_MEMORY), in hugetlb_bootmem_struct_page_init()
3566 job.max_threads = hugepage_allocation_threads; in hugetlb_pages_alloc_boot()
/linux/drivers/android/
H A Dbinder.c5176 proc->requested_threads_started < proc->max_threads && in binder_thread_read()
5815 u32 max_threads; in binder_ioctl()
5817 if (copy_from_user(&max_threads, ubuf, in binder_ioctl()
5818 sizeof(max_threads))) { in binder_ioctl()
5823 proc->max_threads = max_threads; in binder_ioctl()
6824 proc->requested_threads_started, proc->max_threads, in print_binder_proc_stats()
5814 u32 max_threads; binder_ioctl() local