| /linux/drivers/irqchip/ |
| H A D | irq-bcm6345-l1.c | 194 unsigned int new_cpu; in bcm6345_l1_set_affinity() local 198 new_cpu = cpumask_first_and_and(&intc->cpumask, dest, cpu_online_mask); in bcm6345_l1_set_affinity() 199 if (new_cpu >= nr_cpu_ids) in bcm6345_l1_set_affinity() 202 dest = cpumask_of(new_cpu); in bcm6345_l1_set_affinity() 205 if (old_cpu != new_cpu) { in bcm6345_l1_set_affinity() 217 irq_data_update_effective_affinity(d, cpumask_of(new_cpu)); in bcm6345_l1_set_affinity()
|
| /linux/kernel/sched/ |
| H A D | cpudeadline.c | 177 int old_idx, new_cpu; in cpudl_clear() local 192 new_cpu = cp->elements[cp->size - 1].cpu; in cpudl_clear() 194 cp->elements[old_idx].cpu = new_cpu; in cpudl_clear() 196 cp->elements[new_cpu].idx = old_idx; in cpudl_clear()
|
| H A D | fair.c | 3699 static void update_scan_period(struct task_struct *p, int new_cpu) in update_scan_period() argument 3702 int dst_nid = cpu_to_node(new_cpu); in update_scan_period() 3747 static inline void update_scan_period(struct task_struct *p, int new_cpu) in update_scan_period() argument 7509 int new_cpu = cpu; in sched_balance_find_dst_cpu() local 7537 new_cpu = sched_balance_find_dst_group_cpu(group, p, cpu); in sched_balance_find_dst_cpu() 7538 if (new_cpu == cpu) { in sched_balance_find_dst_cpu() 7545 cpu = new_cpu; in sched_balance_find_dst_cpu() 7556 return new_cpu; in sched_balance_find_dst_cpu() 8589 int new_cpu = prev_cpu; in select_task_rq_fair() local 8606 new_cpu = find_energy_efficient_cpu(p, prev_cpu); in select_task_rq_fair() [all …]
|
| H A D | core.c | 2449 struct task_struct *p, int new_cpu) in move_queued_task() argument 2455 set_task_cpu(p, new_cpu); in move_queued_task() 2458 rq = cpu_rq(new_cpu); in move_queued_task() 2461 WARN_ON_ONCE(task_cpu(p) != new_cpu); in move_queued_task() 3243 void set_task_cpu(struct task_struct *p, unsigned int new_cpu) in set_task_cpu() argument 3279 WARN_ON_ONCE(!cpu_online(new_cpu)); in set_task_cpu() 3283 trace_sched_migrate_task(p, new_cpu); in set_task_cpu() 3285 if (task_cpu(p) != new_cpu) { in set_task_cpu() 3287 p->sched_class->migrate_task_rq(p, new_cpu); in set_task_cpu() 3292 __set_task_cpu(p, new_cpu); in set_task_cpu()
|
| H A D | deadline.c | 2455 static void migrate_task_rq_dl(struct task_struct *p, int new_cpu __maybe_unused) in migrate_task_rq_dl()
|
| H A D | sched.h | 2576 void (*migrate_task_rq)(struct task_struct *p, int new_cpu);
|
| /linux/arch/x86/hyperv/ |
| H A D | hv_init.c | 274 unsigned int new_cpu; in hv_cpu_die() local 316 new_cpu = cpumask_any_but(cpu_online_mask, cpu); in hv_cpu_die() 318 if (new_cpu < nr_cpu_ids) in hv_cpu_die() 319 re_ctrl.target_vp = hv_vp_index[new_cpu]; in hv_cpu_die()
|
| /linux/tools/perf/scripts/python/ |
| H A 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/arch/x86/events/intel/ |
| H A D | uncore.c | 1455 int new_cpu) in uncore_change_type_ctx() argument 1461 die = topology_logical_die_id(old_cpu < 0 ? new_cpu : old_cpu); in uncore_change_type_ctx() 1470 box->cpu = new_cpu; in uncore_change_type_ctx() 1471 cpumask_set_cpu(new_cpu, &pmu->cpu_mask); in uncore_change_type_ctx() 1479 if (new_cpu < 0) in uncore_change_type_ctx() 1485 perf_pmu_migrate_context(&pmu->pmu, old_cpu, new_cpu); in uncore_change_type_ctx() 1486 box->cpu = new_cpu; in uncore_change_type_ctx() 1487 cpumask_set_cpu(new_cpu, &pmu->cpu_mask); in uncore_change_type_ctx() 1492 int old_cpu, int new_cpu) in uncore_change_context() argument 1495 uncore_change_type_ctx(*uncores, old_cpu, new_cpu); in uncore_change_context()
|
| /linux/drivers/hv/ |
| H A D | hyperv_vmbus.h | 514 unsigned int new_cpu) in hv_update_allocated_cpus() argument 516 hv_set_allocated_cpu(new_cpu); in hv_update_allocated_cpus()
|
| /linux/arch/powerpc/perf/ |
| H A D | imc-pmu.c | 344 static void nest_change_cpu_context(int old_cpu, int new_cpu) in nest_change_cpu_context() argument 348 if (old_cpu < 0 || new_cpu < 0) in nest_change_cpu_context() 352 perf_pmu_migrate_context(&(*pn)->pmu, old_cpu, new_cpu); in nest_change_cpu_context()
|
| /linux/arch/arm64/kvm/vgic/ |
| H A D | vgic.c | 789 struct vgic_cpu *new_cpu = &target_vcpu->arch.vgic_cpu; in vgic_prune_ap_list() local 793 list_add_tail(&irq->ap_list, &new_cpu->ap_list_head); in vgic_prune_ap_list()
|
| /linux/drivers/scsi/lpfc/ |
| H A D | lpfc_init.c | 12414 int i, cpu, idx, next_idx, new_cpu, start_cpu, first_cpu; in lpfc_cpu_affinity_check() local 12478 new_cpu = start_cpu; in lpfc_cpu_affinity_check() 12480 new_cpup = &phba->sli4_hba.cpu_map[new_cpu]; in lpfc_cpu_affinity_check() 12485 new_cpu = lpfc_next_present_cpu(new_cpu); in lpfc_cpu_affinity_check() 12497 start_cpu = lpfc_next_present_cpu(new_cpu); in lpfc_cpu_affinity_check() 12503 cpu, cpup->eq, new_cpu, in lpfc_cpu_affinity_check() 12524 new_cpu = start_cpu; in lpfc_cpu_affinity_check() 12526 new_cpup = &phba->sli4_hba.cpu_map[new_cpu]; in lpfc_cpu_affinity_check() 12530 new_cpu = lpfc_next_present_cpu(new_cpu); in lpfc_cpu_affinity_check() 12546 start_cpu = lpfc_next_present_cpu(new_cpu); in lpfc_cpu_affinity_check() [all …]
|
| /linux/kernel/ |
| H A D | workqueue.c | 2230 int new_cpu; in wq_select_unbound_cpu() local 2239 new_cpu = __this_cpu_read(wq_rr_cpu_last); in wq_select_unbound_cpu() 2240 new_cpu = cpumask_next_and_wrap(new_cpu, wq_unbound_cpumask, cpu_online_mask); in wq_select_unbound_cpu() 2241 if (unlikely(new_cpu >= nr_cpu_ids)) in wq_select_unbound_cpu() 2243 __this_cpu_write(wq_rr_cpu_last, new_cpu); in wq_select_unbound_cpu() 2245 return new_cpu; in wq_select_unbound_cpu()
|
| /linux/tools/perf/ |
| H A D | builtin-sched.c | 1644 bool new_cpu = false; in map_switch_event() local 1659 new_cpu = true; in map_switch_event() 1761 if (sched->map.comp && new_cpu) in map_switch_event()
|