Searched refs:old_idx (Results 1 – 2 of 2) sorted by relevance
134 int old_idx, new_cpu; in cpudl_set() local140 old_idx = cp->elements[cpu].idx; in cpudl_set()143 if (old_idx == IDX_INVALID) { in cpudl_set()152 cp->elements[old_idx].dl = cp->elements[cp->size - 1].dl; in cpudl_set()153 cp->elements[old_idx].cpu = new_cpu; in cpudl_set()155 cp->elements[new_cpu].idx = old_idx; in cpudl_set()157 while (old_idx > 0 && dl_time_before( in cpudl_set()158 cp->elements[parent(old_idx)].dl, in cpudl_set()159 cp->elements[old_idx].dl)) { in cpudl_set()160 cpudl_exchange(cp, old_idx, parent(old_idx)); in cpudl_set()[all …]
188 int old_idx, new_idx; in toggle_bp_task_slot() local190 old_idx = task_bp_pinned(cpu, bp, type) - 1; in toggle_bp_task_slot()191 new_idx = old_idx + weight; in toggle_bp_task_slot()193 if (old_idx >= 0) in toggle_bp_task_slot()194 tsk_pinned[old_idx]--; in toggle_bp_task_slot()