Home
last modified time | relevance | path

Searched refs:threads (Results 1 – 5 of 5) sorted by relevance

/kernel/dma/
Dmap_benchmark.c102 int threads = map->bparam.threads; in do_map_benchmark() local
108 tsk = kmalloc_array(threads, sizeof(*tsk), GFP_KERNEL); in do_map_benchmark()
114 for (i = 0; i < threads; i++) { in do_map_benchmark()
136 for (i = 0; i < threads; i++) { in do_map_benchmark()
144 for (i = 0; i < threads; i++) { in do_map_benchmark()
196 if (map->bparam.threads == 0 || in map_benchmark_ioctl()
197 map->bparam.threads > DMA_MAP_MAX_THREADS) { in map_benchmark_ioctl()
/kernel/kcsan/
Dkcsan_test.c49 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/
Dfork.c1026 u64 threads; in set_max_threads() local
1034 threads = MAX_THREADS; in set_max_threads()
1036 threads = div64_u64((u64) nr_pages * (u64) PAGE_SIZE, in set_max_threads()
1039 if (threads > max_threads_suggested) in set_max_threads()
1040 threads = max_threads_suggested; in set_max_threads()
1042 max_threads = clamp_t(u64, threads, MIN_THREADS, MAX_THREADS); in set_max_threads()
3576 int threads = max_threads; in sysctl_max_threads() local
3581 t.data = &threads; in sysctl_max_threads()
3589 max_threads = threads; in sysctl_max_threads()
Dcpu.c2931 static bool cpu_smt_num_threads_valid(unsigned int threads) in cpu_smt_num_threads_valid() argument
2934 return threads >= 1 && threads <= cpu_smt_max_threads; in cpu_smt_num_threads_valid()
2935 return threads == 1 || threads == cpu_smt_max_threads; in cpu_smt_num_threads_valid()
/kernel/trace/
DKconfig409 This tracer, when enabled will create one or more kernel threads,
458 NMI, IRQs, SoftIRQs, and threads is increased anytime the tool
481 to find sources of wakeup latencies of real-time threads.
499 IRQs and other threads. It also enables the capture of the
1060 to each of the threads, where the IPI handler will also write