Lines Matching defs:needed
600 xpc_activate_kthreads(struct xpc_channel *ch, int needed)
606 DBUG_ON(needed <= 0);
609 wakeup = (needed > idle) ? idle : needed;
610 needed -= wakeup;
619 if (needed <= 0)
622 if (needed + assigned > ch->kthreads_assigned_limit) {
623 needed = ch->kthreads_assigned_limit - assigned;
624 if (needed <= 0)
629 needed, ch->partid, ch->number);
631 xpc_create_kthreads(ch, needed, 0);
762 xpc_create_kthreads(struct xpc_channel *ch, int needed,
772 while (needed-- > 0) {
1210 * Fill the partition reserved page with the information needed by