| /linux/tools/perf/bench/ |
| H A D | synthesize.c | 26 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 D | cpu_smt.h | 18 unsigned int max_threads); 27 unsigned int max_threads) { } in cpu_smt_set_num_threads() argument
|
| /linux/tools/perf/util/ |
| H A D | thread_map.c | 78 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/arch/x86/kernel/ |
| H A D | smpboot.c | 1282 int max_threads, cpu; in recompute_smt_state() local 1284 max_threads = 0; in recompute_smt_state() 1288 if (threads > max_threads) in recompute_smt_state() 1289 max_threads = threads; in recompute_smt_state() 1291 __max_smt_threads = max_threads; in recompute_smt_state()
|
| /linux/drivers/gpu/drm/radeon/ |
| H A D | rv770.c | 1199 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 D | ni.c | 887 rdev->config.cayman.max_threads = 256; in cayman_gpu_init() 965 rdev->config.cayman.max_threads = 256; in cayman_gpu_init()
|
| H A D | r600.c | 2012 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 D | svc.c | 856 unsigned int min_threads, unsigned int max_threads) in svc_set_pool_threads() argument 864 if (min_threads > max_threads) in svc_set_pool_threads() 865 min_threads = max_threads; in svc_set_pool_threads() 868 pool->sp_nrthrmax = max_threads; in svc_set_pool_threads() 875 if (pool->sp_nrthreads > max_threads) in svc_set_pool_threads() 876 delta = max_threads; in svc_set_pool_threads() 882 delta = max_threads; in svc_set_pool_threads()
|
| /linux/kernel/ |
| H A D | fork.c | 143 static int max_threads; /* tunable limit on nr_threads */ variable 826 max_threads = clamp_t(u64, threads, MIN_THREADS, MAX_THREADS); in set_max_threads() 870 init_task.signal->rlim[RLIMIT_NPROC].rlim_cur = max_threads/2; in fork_init() 871 init_task.signal->rlim[RLIMIT_NPROC].rlim_max = max_threads/2; in fork_init() 876 init_user_ns.ucount_max[i] = max_threads/2; in fork_init() 2102 if (data_race(nr_threads >= max_threads)) in copy_process() 3276 int threads = max_threads; in sysctl_max_threads() 3289 max_threads = threads; in sysctl_max_threads()
|
| H A D | cpu.c | 635 unsigned int max_threads) in cpu_smt_set_num_threads() 637 WARN_ON(!num_threads || (num_threads > max_threads)); in cpu_smt_set_num_threads() 639 if (max_threads == 1) in cpu_smt_set_num_threads() 642 cpu_smt_max_threads = max_threads; in cpu_smt_set_num_threads() 631 cpu_smt_set_num_threads(unsigned int num_threads,unsigned int max_threads) cpu_smt_set_num_threads() argument
|
| H A D | padata.c | 459 nworks = min(nworks, job->max_threads); in padata_do_multithreaded()
|
| /linux/drivers/android/binder/ |
| H A D | process.rs | 118 max_threads: u32, field 151 max_threads: 0, in new() 543 inner.max_threads, in debug_print_stats() 1143 self.inner.lock().max_threads = max; in set_max_threads() 1208 && inner.started_thread_count < inner.max_threads; in needs_thread()
|
| /linux/mm/ |
| H A D | mm_init.c | 2116 int max_threads = deferred_page_init_max_threads(cpumask); in deferred_init_memmap() local 2156 .max_threads = max_threads, in deferred_init_memmap()
|
| H A D | hugetlb.c | 3415 .max_threads = num_node_state(N_MEMORY), in gather_bootmem_prealloc() 3571 job.max_threads = hugepage_allocation_threads; in hugetlb_pages_alloc_boot()
|
| /linux/drivers/android/ |
| H A D | binder.c | 5160 proc->requested_threads_started < proc->max_threads && in binder_thread_read() 5799 u32 max_threads; in binder_ioctl() local 5801 if (copy_from_user(&max_threads, ubuf, in binder_ioctl() 5802 sizeof(max_threads))) { in binder_ioctl() 5807 proc->max_threads = max_threads; in binder_ioctl() 6808 proc->requested_threads_started, proc->max_threads, in print_binder_proc_stats()
|
| /linux/drivers/gpu/drm/panfrost/ |
| H A D | panfrost_drv.c | 87 PANFROST_FEATURE(MAX_THREADS, max_threads); in panfrost_ioctl_get_param()
|