Lines Matching defs:needed
601 xpc_activate_kthreads(struct xpc_channel *ch, int needed)
607 DBUG_ON(needed <= 0);
610 wakeup = (needed > idle) ? idle : needed;
611 needed -= wakeup;
620 if (needed <= 0)
623 if (needed + assigned > ch->kthreads_assigned_limit) {
624 needed = ch->kthreads_assigned_limit - assigned;
625 if (needed <= 0)
630 needed, ch->partid, ch->number);
632 xpc_create_kthreads(ch, needed, 0);
763 xpc_create_kthreads(struct xpc_channel *ch, int needed,
773 while (needed-- > 0) {
1211 * Fill the partition reserved page with the information needed by