Lines Matching defs:nr_running
449 * The almighty global cpu workqueues. nr_running is the only field
457 * Global cpu workqueue and nr_running counter for unbound gcwq. The
610 atomic_t *nr_running = get_gcwq_nr_running(gcwq->cpu);
612 return !list_empty(&gcwq->worklist) && atomic_read(nr_running) <= 1;
706 atomic_t *nr_running = get_gcwq_nr_running(cpu);
725 if (atomic_dec_and_test(nr_running) && !list_empty(&gcwq->worklist))
731 * worker_set_flags - set worker flags and adjust nr_running accordingly
736 * Set @flags in @worker->flags and adjust nr_running accordingly. If
737 * nr_running becomes zero and @wakeup is %true, an idle worker is
751 * If transitioning into NOT_RUNNING, adjust nr_running and
757 atomic_t *nr_running = get_gcwq_nr_running(gcwq->cpu);
760 if (atomic_dec_and_test(nr_running) &&
764 atomic_dec(nr_running);
771 * worker_clr_flags - clear worker flags and adjust nr_running accordingly
775 * Clear @flags in @worker->flags and adjust nr_running accordingly.
789 /* if transitioning out of NOT_RUNNING, increment nr_running */
944 * list_add_tail() or we see zero nr_running to avoid workers
1183 /* sanity check nr_running */
3157 * Sched callbacks are disabled now. Zap nr_running. After
3158 * this, nr_running stays zero and need_more_worker() and