Home
last modified time | relevance | path

Searched refs:new_cpu (Results 1 – 18 of 18) sorted by relevance

/linux-6.6.21/arch/ia64/kernel/
Dirq.c82 int irq, new_cpu; in migrate_irqs() local
108 new_cpu = cpumask_any(cpu_online_mask); in migrate_irqs()
117 cpumask_of(new_cpu), false); in migrate_irqs()
/linux-6.6.21/drivers/irqchip/
Dirq-bcm6345-l1.c194 unsigned int new_cpu; in bcm6345_l1_set_affinity() local
202 new_cpu = cpumask_any_and(&valid, cpu_online_mask); in bcm6345_l1_set_affinity()
203 if (new_cpu >= nr_cpu_ids) in bcm6345_l1_set_affinity()
206 dest = cpumask_of(new_cpu); in bcm6345_l1_set_affinity()
209 if (old_cpu != new_cpu) { in bcm6345_l1_set_affinity()
221 irq_data_update_effective_affinity(d, cpumask_of(new_cpu)); in bcm6345_l1_set_affinity()
/linux-6.6.21/kernel/sched/
Dcpudeadline.c175 int old_idx, new_cpu; in cpudl_clear() local
190 new_cpu = cp->elements[cp->size - 1].cpu; in cpudl_clear()
192 cp->elements[old_idx].cpu = new_cpu; in cpudl_clear()
194 cp->elements[new_cpu].idx = old_idx; in cpudl_clear()
Dfair.c3472 static void update_scan_period(struct task_struct *p, int new_cpu) in update_scan_period() argument
3475 int dst_nid = cpu_to_node(new_cpu); in update_scan_period()
3519 static inline void update_scan_period(struct task_struct *p, int new_cpu) in update_scan_period() argument
7061 int new_cpu = cpu; in find_idlest_cpu() local
7089 new_cpu = find_idlest_group_cpu(group, p, cpu); in find_idlest_cpu()
7090 if (new_cpu == cpu) { in find_idlest_cpu()
7097 cpu = new_cpu; in find_idlest_cpu()
7108 return new_cpu; in find_idlest_cpu()
8019 int new_cpu = prev_cpu; in select_task_rq_fair() local
8036 new_cpu = find_energy_efficient_cpu(p, prev_cpu); in select_task_rq_fair()
[all …]
Dcore.c2517 struct task_struct *p, int new_cpu) in move_queued_task() argument
2522 set_task_cpu(p, new_cpu); in move_queued_task()
2525 rq = cpu_rq(new_cpu); in move_queued_task()
2528 WARN_ON_ONCE(task_cpu(p) != new_cpu); in move_queued_task()
3344 void set_task_cpu(struct task_struct *p, unsigned int new_cpu) in set_task_cpu() argument
3381 WARN_ON_ONCE(!cpu_online(new_cpu)); in set_task_cpu()
3386 trace_sched_migrate_task(p, new_cpu); in set_task_cpu()
3388 if (task_cpu(p) != new_cpu) { in set_task_cpu()
3390 p->sched_class->migrate_task_rq(p, new_cpu); in set_task_cpu()
3397 __set_task_cpu(p, new_cpu); in set_task_cpu()
Dsched.h2255 void (*migrate_task_rq)(struct task_struct *p, int new_cpu);
Ddeadline.c1866 static void migrate_task_rq_dl(struct task_struct *p, int new_cpu __maybe_unused) in migrate_task_rq_dl()
/linux-6.6.21/arch/x86/hyperv/
Dhv_init.c236 unsigned int new_cpu; in hv_cpu_die() local
275 new_cpu = cpumask_any_but(cpu_online_mask, cpu); in hv_cpu_die()
277 if (new_cpu < nr_cpu_ids) in hv_cpu_die()
278 re_ctrl.target_vp = hv_vp_index[new_cpu]; in hv_cpu_die()
/linux-6.6.21/tools/perf/scripts/python/
Dsched-migration.py191 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-6.6.21/drivers/gpu/drm/amd/amdkfd/
Dkfd_device.c1003 int cpu, new_cpu; in kfd_queue_work() local
1005 cpu = new_cpu = smp_processor_id(); in kfd_queue_work()
1007 new_cpu = cpumask_next(new_cpu, cpu_online_mask) % nr_cpu_ids; in kfd_queue_work()
1008 if (cpu_to_node(new_cpu) == numa_node_id()) in kfd_queue_work()
1010 } while (cpu != new_cpu); in kfd_queue_work()
1012 queue_work_on(new_cpu, wq, work); in kfd_queue_work()
/linux-6.6.21/drivers/hv/
Dhyperv_vmbus.h455 unsigned int new_cpu) in hv_update_allocated_cpus() argument
457 hv_set_allocated_cpu(new_cpu); in hv_update_allocated_cpus()
/linux-6.6.21/drivers/perf/
Dthunderx2_pmu.c935 int new_cpu; in tx2_uncore_pmu_offline_cpu() local
950 new_cpu = cpumask_any_and( in tx2_uncore_pmu_offline_cpu()
954 tx2_pmu->cpu = new_cpu; in tx2_uncore_pmu_offline_cpu()
955 if (new_cpu >= nr_cpu_ids) in tx2_uncore_pmu_offline_cpu()
957 perf_pmu_migrate_context(&tx2_pmu->pmu, cpu, new_cpu); in tx2_uncore_pmu_offline_cpu()
/linux-6.6.21/arch/x86/events/intel/
Duncore.c1457 int new_cpu) in uncore_change_type_ctx() argument
1463 die = topology_logical_die_id(old_cpu < 0 ? new_cpu : old_cpu); in uncore_change_type_ctx()
1471 box->cpu = new_cpu; in uncore_change_type_ctx()
1477 if (new_cpu < 0) in uncore_change_type_ctx()
1481 perf_pmu_migrate_context(&pmu->pmu, old_cpu, new_cpu); in uncore_change_type_ctx()
1482 box->cpu = new_cpu; in uncore_change_type_ctx()
1487 int old_cpu, int new_cpu) in uncore_change_context() argument
1490 uncore_change_type_ctx(*uncores, old_cpu, new_cpu); in uncore_change_context()
/linux-6.6.21/arch/arm64/kvm/vgic/
Dvgic.c713 struct vgic_cpu *new_cpu = &target_vcpu->arch.vgic_cpu; in vgic_prune_ap_list() local
717 list_add_tail(&irq->ap_list, &new_cpu->ap_list_head); in vgic_prune_ap_list()
/linux-6.6.21/arch/powerpc/perf/
Dimc-pmu.c344 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-6.6.21/kernel/
Dworkqueue.c1678 int new_cpu; in wq_select_unbound_cpu() local
1687 new_cpu = __this_cpu_read(wq_rr_cpu_last); in wq_select_unbound_cpu()
1688 new_cpu = cpumask_next_and(new_cpu, wq_unbound_cpumask, cpu_online_mask); in wq_select_unbound_cpu()
1689 if (unlikely(new_cpu >= nr_cpu_ids)) { in wq_select_unbound_cpu()
1690 new_cpu = cpumask_first_and(wq_unbound_cpumask, cpu_online_mask); in wq_select_unbound_cpu()
1691 if (unlikely(new_cpu >= nr_cpu_ids)) in wq_select_unbound_cpu()
1694 __this_cpu_write(wq_rr_cpu_last, new_cpu); in wq_select_unbound_cpu()
1696 return new_cpu; in wq_select_unbound_cpu()
/linux-6.6.21/drivers/scsi/lpfc/
Dlpfc_init.c12440 int i, cpu, idx, next_idx, new_cpu, start_cpu, first_cpu; in lpfc_cpu_affinity_check() local
12508 new_cpu = start_cpu; in lpfc_cpu_affinity_check()
12510 new_cpup = &phba->sli4_hba.cpu_map[new_cpu]; in lpfc_cpu_affinity_check()
12515 new_cpu = lpfc_next_present_cpu(new_cpu); in lpfc_cpu_affinity_check()
12527 start_cpu = lpfc_next_present_cpu(new_cpu); in lpfc_cpu_affinity_check()
12533 cpu, cpup->eq, new_cpu, in lpfc_cpu_affinity_check()
12554 new_cpu = start_cpu; in lpfc_cpu_affinity_check()
12556 new_cpup = &phba->sli4_hba.cpu_map[new_cpu]; in lpfc_cpu_affinity_check()
12560 new_cpu = lpfc_next_present_cpu(new_cpu); in lpfc_cpu_affinity_check()
12576 start_cpu = lpfc_next_present_cpu(new_cpu); in lpfc_cpu_affinity_check()
[all …]
/linux-6.6.21/tools/perf/
Dbuiltin-sched.c1580 bool new_cpu = false; in map_switch_event() local
1593 new_cpu = true; in map_switch_event()
1700 if (sched->map.comp && new_cpu) in map_switch_event()