Lines Matching refs:groups
12 // We need a sorted list of priority groups, where each element in the list
25 int num_groups; // number of non-empty groups
26 group_t group[MAX_GROUPS]; // array of groups
104 group_list_t *groups;
143 // Determine the current priority groups
144 groups = NewGroupList(num_kernels);
155 AddToGroup(groups, priority, i); // we'll move them all later
157 AddToGroup(groups, 99, i); // move only this one
159 AddToGroup(groups, priority, i); // just remember
165 ChangeGroup(groups, params->orig_priority, 99);
170 SortGroups(groups);
174 i = groups->num_groups;
175 if (groups->group[i-1].priority == 0)
176 groups->num_groups--;
182 priority = groups->num_groups > 15 ? 15 : groups->num_groups;
185 for (i=0; i<groups->num_groups; i++) {
186 groups->group[i].priority = priority;
192 for (i=0; i<groups->num_groups; i++)
193 for (j=0; j<groups->group[i].num_parts; j++)
195 groups->group[i].part[j], groups->group[i].priority);
197 FreeGroups(groups);