/Linux-v5.4/arch/ia64/kernel/ |
D | irq.c | 81 int irq, new_cpu; in migrate_irqs() local 107 new_cpu = cpumask_any(cpu_online_mask); in migrate_irqs() 116 cpumask_of(new_cpu), false); in migrate_irqs()
|
/Linux-v5.4/drivers/irqchip/ |
D | irq-bcm6345-l1.c | 204 unsigned int new_cpu; in bcm6345_l1_set_affinity() local 212 new_cpu = cpumask_any_and(&valid, cpu_online_mask); in bcm6345_l1_set_affinity() 213 if (new_cpu >= nr_cpu_ids) in bcm6345_l1_set_affinity() 216 dest = cpumask_of(new_cpu); in bcm6345_l1_set_affinity() 219 if (old_cpu != new_cpu) { in bcm6345_l1_set_affinity() 231 irq_data_update_effective_affinity(d, cpumask_of(new_cpu)); in bcm6345_l1_set_affinity()
|
/Linux-v5.4/kernel/sched/ |
D | cpudeadline.c | 152 int old_idx, new_cpu; in cpudl_clear() local 167 new_cpu = cp->elements[cp->size - 1].cpu; in cpudl_clear() 169 cp->elements[old_idx].cpu = new_cpu; in cpudl_clear() 171 cp->elements[new_cpu].idx = old_idx; in cpudl_clear()
|
D | fair.c | 2703 static void update_scan_period(struct task_struct *p, int new_cpu) in update_scan_period() argument 2706 int dst_nid = cpu_to_node(new_cpu); in update_scan_period() 2750 static inline void update_scan_period(struct task_struct *p, int new_cpu) in update_scan_period() argument 5750 int new_cpu = cpu; in find_idlest_cpu() local 5778 new_cpu = find_idlest_group_cpu(group, p, cpu); in find_idlest_cpu() 5779 if (new_cpu == cpu) { in find_idlest_cpu() 5786 cpu = new_cpu; in find_idlest_cpu() 5797 return new_cpu; in find_idlest_cpu() 6447 int new_cpu = prev_cpu; in select_task_rq_fair() local 6455 new_cpu = find_energy_efficient_cpu(p, prev_cpu); in select_task_rq_fair() [all …]
|
D | core.c | 1489 struct task_struct *p, int new_cpu) in move_queued_task() argument 1495 set_task_cpu(p, new_cpu); in move_queued_task() 1498 rq = cpu_rq(new_cpu); in move_queued_task() 1501 BUG_ON(task_cpu(p) != new_cpu); in move_queued_task() 1706 void set_task_cpu(struct task_struct *p, unsigned int new_cpu) in set_task_cpu() argument 1742 WARN_ON_ONCE(!cpu_online(new_cpu)); in set_task_cpu() 1745 trace_sched_migrate_task(p, new_cpu); in set_task_cpu() 1747 if (task_cpu(p) != new_cpu) { in set_task_cpu() 1749 p->sched_class->migrate_task_rq(p, new_cpu); in set_task_cpu() 1755 __set_task_cpu(p, new_cpu); in set_task_cpu()
|
D | sched.h | 1736 void (*migrate_task_rq)(struct task_struct *p, int new_cpu);
|
D | deadline.c | 1642 static void migrate_task_rq_dl(struct task_struct *p, int new_cpu __maybe_unused) in migrate_task_rq_dl()
|
/Linux-v5.4/arch/x86/hyperv/ |
D | hv_init.c | 194 unsigned int new_cpu; in hv_cpu_die() local 215 new_cpu = cpumask_any_but(cpu_online_mask, cpu); in hv_cpu_die() 217 re_ctrl.target_vp = hv_vp_index[new_cpu]; in hv_cpu_die()
|
/Linux-v5.4/tools/perf/scripts/python/ |
D | sched-migration.py | 191 def migrate(self, ts_list, new, old_cpu, new_cpu): argument 192 if old_cpu == new_cpu: 199 new_rq = self.prev.rqs[new_cpu] 201 self.rqs[new_cpu] = in_rq 208 self.event_cpus.append(new_cpu)
|
/Linux-v5.4/drivers/perf/ |
D | thunderx2_pmu.c | 737 int new_cpu; in tx2_uncore_pmu_offline_cpu() local 750 new_cpu = cpumask_any_and( in tx2_uncore_pmu_offline_cpu() 754 tx2_pmu->cpu = new_cpu; in tx2_uncore_pmu_offline_cpu() 755 if (new_cpu >= nr_cpu_ids) in tx2_uncore_pmu_offline_cpu() 757 perf_pmu_migrate_context(&tx2_pmu->pmu, cpu, new_cpu); in tx2_uncore_pmu_offline_cpu()
|
/Linux-v5.4/arch/x86/events/intel/ |
D | uncore.c | 1158 int new_cpu) in uncore_change_type_ctx() argument 1164 die = topology_logical_die_id(old_cpu < 0 ? new_cpu : old_cpu); in uncore_change_type_ctx() 1172 box->cpu = new_cpu; in uncore_change_type_ctx() 1178 if (new_cpu < 0) in uncore_change_type_ctx() 1182 perf_pmu_migrate_context(&pmu->pmu, old_cpu, new_cpu); in uncore_change_type_ctx() 1183 box->cpu = new_cpu; in uncore_change_type_ctx() 1188 int old_cpu, int new_cpu) in uncore_change_context() argument 1191 uncore_change_type_ctx(*uncores, old_cpu, new_cpu); in uncore_change_context()
|
/Linux-v5.4/drivers/scsi/lpfc/ |
D | lpfc_init.c | 10635 int i, cpu, idx, next_idx, new_cpu, start_cpu, first_cpu; in lpfc_cpu_affinity_check() local 10771 new_cpu = start_cpu; in lpfc_cpu_affinity_check() 10773 new_cpup = &phba->sli4_hba.cpu_map[new_cpu]; in lpfc_cpu_affinity_check() 10778 new_cpu = cpumask_next( in lpfc_cpu_affinity_check() 10779 new_cpu, cpu_present_mask); in lpfc_cpu_affinity_check() 10780 if (new_cpu == nr_cpumask_bits) in lpfc_cpu_affinity_check() 10781 new_cpu = first_cpu; in lpfc_cpu_affinity_check() 10794 start_cpu = cpumask_next(new_cpu, cpu_present_mask); in lpfc_cpu_affinity_check() 10802 cpu, cpup->irq, new_cpu, cpup->phys_id); in lpfc_cpu_affinity_check() 10822 new_cpu = start_cpu; in lpfc_cpu_affinity_check() [all …]
|
/Linux-v5.4/virt/kvm/arm/vgic/ |
D | vgic.c | 696 struct vgic_cpu *new_cpu = &target_vcpu->arch.vgic_cpu; in vgic_prune_ap_list() local 700 list_add_tail(&irq->ap_list, &new_cpu->ap_list_head); in vgic_prune_ap_list()
|
/Linux-v5.4/kernel/ |
D | workqueue.c | 1369 int new_cpu; in wq_select_unbound_cpu() local 1382 new_cpu = __this_cpu_read(wq_rr_cpu_last); in wq_select_unbound_cpu() 1383 new_cpu = cpumask_next_and(new_cpu, wq_unbound_cpumask, cpu_online_mask); in wq_select_unbound_cpu() 1384 if (unlikely(new_cpu >= nr_cpu_ids)) { in wq_select_unbound_cpu() 1385 new_cpu = cpumask_first_and(wq_unbound_cpumask, cpu_online_mask); in wq_select_unbound_cpu() 1386 if (unlikely(new_cpu >= nr_cpu_ids)) in wq_select_unbound_cpu() 1389 __this_cpu_write(wq_rr_cpu_last, new_cpu); in wq_select_unbound_cpu() 1391 return new_cpu; in wq_select_unbound_cpu()
|
/Linux-v5.4/arch/powerpc/perf/ |
D | imc-pmu.c | 320 static void nest_change_cpu_context(int old_cpu, int new_cpu) in nest_change_cpu_context() argument 324 if (old_cpu < 0 || new_cpu < 0) in nest_change_cpu_context() 328 perf_pmu_migrate_context(&(*pn)->pmu, old_cpu, new_cpu); in nest_change_cpu_context()
|
/Linux-v5.4/tools/perf/ |
D | builtin-sched.c | 1534 bool new_cpu = false; in map_switch_event() local 1547 new_cpu = true; in map_switch_event() 1652 if (sched->map.comp && new_cpu) in map_switch_event()
|