Lines Matching refs:wq_max_constrained_threads
146 static uint32_t wq_max_constrained_threads = WORKQUEUE_MAXTHREADS / 8; variable
184 SYSCTL_INT(_kern, OID_AUTO, wq_max_constrained_threads, CTLFLAG_RW | CTLFLAG_LOCKED,
185 &wq_max_constrained_threads, 0, "");
879 if (wq_max_constrained_threads > idle - wq_death_max_load) { in workq_kill_delay_for_idle_thread()
880 delay *= (wq_max_constrained_threads - (idle - wq_death_max_load)); in workq_kill_delay_for_idle_thread()
882 return delay / wq_max_constrained_threads; in workq_kill_delay_for_idle_thread()
1309 if (cur_idle >= wq_max_constrained_threads || in workq_push_idle_thread()
2102 if (limit > wq_max_constrained_threads) { in workq_open()
2103 wq_max_constrained_threads = limit; in workq_open()
2502 force_run = (wq->wq_constrained_threads_scheduled-- == wq_max_constrained_threads); in bsdthread_set_self()
3997 if (max_count >= wq_max_constrained_threads) { in workq_constrained_allowance()
4000 wq_max_constrained_threads); in workq_constrained_allowance()
4008 max_count -= wq_max_constrained_threads; in workq_constrained_allowance()
5172 if (wq->wq_constrained_threads_scheduled >= wq_max_constrained_threads) { in fill_procworkqueue()
5251 if (wq->wq_constrained_threads_scheduled >= wq_max_constrained_threads) { in workqueue_get_task_ss_flags_from_pwq_state_kdp()