Lines Matching refs:wq_max_constrained_threads
137 static uint32_t wq_max_constrained_threads = WORKQUEUE_MAXTHREADS / 8; variable
175 SYSCTL_INT(_kern, OID_AUTO, wq_max_constrained_threads, CTLFLAG_RW | CTLFLAG_LOCKED,
176 &wq_max_constrained_threads, 0, "");
863 if (wq_max_constrained_threads > idle - wq_death_max_load) { in workq_kill_delay_for_idle_thread()
864 delay *= (wq_max_constrained_threads - (idle - wq_death_max_load)); in workq_kill_delay_for_idle_thread()
866 return delay / wq_max_constrained_threads; in workq_kill_delay_for_idle_thread()
1270 if (cur_idle >= wq_max_constrained_threads || in workq_push_idle_thread()
2058 if (limit > wq_max_constrained_threads) { in workq_open()
2059 wq_max_constrained_threads = limit; in workq_open()
2457 force_run = (wq->wq_constrained_threads_scheduled-- == wq_max_constrained_threads); in bsdthread_set_self()
3728 if (max_count >= wq_max_constrained_threads) { in workq_constrained_allowance()
3731 wq_max_constrained_threads); in workq_constrained_allowance()
3738 max_count -= wq_max_constrained_threads; in workq_constrained_allowance()
4729 if (wq->wq_constrained_threads_scheduled >= wq_max_constrained_threads) { in fill_procworkqueue()
4791 if (wq->wq_constrained_threads_scheduled >= wq_max_constrained_threads) { in workqueue_get_pwq_state_kdp()