Searched refs:threads (Results 1 – 4 of 4) sorted by relevance
/kernel/dma/ |
D | map_benchmark.c | 102 int threads = map->bparam.threads; in do_map_benchmark() local 109 tsk = kmalloc_array(threads, sizeof(*tsk), GFP_KERNEL); in do_map_benchmark() 115 for (i = 0; i < threads; i++) { in do_map_benchmark() 135 for (i = 0; i < threads; i++) { in do_map_benchmark() 143 for (i = 0; i < threads; i++) { in do_map_benchmark() 173 for (i = 0; i < threads; i++) in do_map_benchmark() 193 if (map->bparam.threads == 0 || in map_benchmark_ioctl() 194 map->bparam.threads > DMA_MAP_MAX_THREADS) { in map_benchmark_ioctl()
|
/kernel/kcsan/ |
D | kcsan_test.c | 49 static struct task_struct **threads; /* Lists of threads. */ variable 1515 if (WARN_ON(threads)) in test_init() 1527 threads = kcalloc(nthreads + 1, sizeof(struct task_struct *), GFP_KERNEL); in test_init() 1528 if (WARN_ON(!threads)) in test_init() 1531 threads[nthreads] = NULL; in test_init() 1533 if (torture_create_kthread(access_thread, NULL, threads[i])) in test_init() 1542 kfree(threads); in test_init() 1543 threads = NULL; in test_init() 1563 if (threads) { in test_exit() 1564 for (stop_thread = threads; *stop_thread; stop_thread++) in test_exit() [all …]
|
/kernel/ |
D | fork.c | 962 u64 threads; in set_max_threads() local 970 threads = MAX_THREADS; in set_max_threads() 972 threads = div64_u64((u64) nr_pages * (u64) PAGE_SIZE, in set_max_threads() 975 if (threads > max_threads_suggested) in set_max_threads() 976 threads = max_threads_suggested; in set_max_threads() 978 max_threads = clamp_t(u64, threads, MIN_THREADS, MAX_THREADS); in set_max_threads() 3415 int threads = max_threads; in sysctl_max_threads() local 3420 t.data = &threads; in sysctl_max_threads() 3428 max_threads = threads; in sysctl_max_threads()
|
/kernel/trace/ |
D | Kconfig | 380 This tracer, when enabled will create one or more kernel threads, 429 NMI, IRQs, SoftIRQs, and threads is increased anytime the tool 452 to find sources of wakeup latencies of real-time threads. 470 IRQs and other threads. It also enables the capture of the 1005 to each of the threads, where the IPI handler will also write
|