Lines Matching refs:needed
617 xpc_activate_kthreads(struct xpc_channel *ch, int needed) in xpc_activate_kthreads() argument
623 DBUG_ON(needed <= 0); in xpc_activate_kthreads()
626 wakeup = (needed > idle) ? idle : needed; in xpc_activate_kthreads()
627 needed -= wakeup; in xpc_activate_kthreads()
636 if (needed <= 0) in xpc_activate_kthreads()
639 if (needed + assigned > ch->kthreads_assigned_limit) { in xpc_activate_kthreads()
640 needed = ch->kthreads_assigned_limit - assigned; in xpc_activate_kthreads()
641 if (needed <= 0) in xpc_activate_kthreads()
646 needed, ch->partid, ch->number); in xpc_activate_kthreads()
648 xpc_create_kthreads(ch, needed, 0); in xpc_activate_kthreads()
779 xpc_create_kthreads(struct xpc_channel *ch, int needed, in xpc_create_kthreads() argument
789 while (needed-- > 0) { in xpc_create_kthreads()