Lines Matching refs:needed
602 xpc_activate_kthreads(struct xpc_channel *ch, int needed)
608 DBUG_ON(needed <= 0);
611 wakeup = (needed > idle) ? idle : needed;
612 needed -= wakeup;
621 if (needed <= 0)
624 if (needed + assigned > ch->kthreads_assigned_limit) {
625 needed = ch->kthreads_assigned_limit - assigned;
626 if (needed <= 0)
631 needed, ch->partid, ch->number);
633 xpc_create_kthreads(ch, needed, 0);
764 xpc_create_kthreads(struct xpc_channel *ch, int needed,
774 while (needed-- > 0) {
1243 * Fill the partition reserved page with the information needed by