Home
last modified time | relevance | path

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

/linux-6.3-rc2/arch/ia64/kernel/
A 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.3-rc2/drivers/irqchip/
A Dirq-bcm6345-l1.c200 unsigned int new_cpu; in bcm6345_l1_set_affinity() local
208 new_cpu = cpumask_any_and(&valid, cpu_online_mask); in bcm6345_l1_set_affinity()
209 if (new_cpu >= nr_cpu_ids) in bcm6345_l1_set_affinity()
212 dest = cpumask_of(new_cpu); in bcm6345_l1_set_affinity()
215 if (old_cpu != new_cpu) { in bcm6345_l1_set_affinity()
227 irq_data_update_effective_affinity(d, cpumask_of(new_cpu)); in bcm6345_l1_set_affinity()
/linux-6.3-rc2/kernel/sched/
A 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()
A Dfair.c6655 int new_cpu = cpu; in find_idlest_cpu() local
6684 if (new_cpu == cpu) { in find_idlest_cpu()
6691 cpu = new_cpu; in find_idlest_cpu()
6702 return new_cpu; in find_idlest_cpu()
7560 int new_cpu = prev_cpu; in select_task_rq_fair() local
7574 if (new_cpu >= 0) in select_task_rq_fair()
7575 return new_cpu; in select_task_rq_fair()
7576 new_cpu = prev_cpu; in select_task_rq_fair()
7613 new_cpu = select_idle_sibling(p, prev_cpu, new_cpu); in select_task_rq_fair()
7617 return new_cpu; in select_task_rq_fair()
[all …]
A Dcore.c2324 struct task_struct *p, int new_cpu) in move_queued_task() argument
2329 set_task_cpu(p, new_cpu); in move_queued_task()
2332 rq = cpu_rq(new_cpu); in move_queued_task()
2335 WARN_ON_ONCE(task_cpu(p) != new_cpu); in move_queued_task()
3146 void set_task_cpu(struct task_struct *p, unsigned int new_cpu) in set_task_cpu() argument
3183 WARN_ON_ONCE(!cpu_online(new_cpu)); in set_task_cpu()
3188 trace_sched_migrate_task(p, new_cpu); in set_task_cpu()
3190 if (task_cpu(p) != new_cpu) { in set_task_cpu()
3192 p->sched_class->migrate_task_rq(p, new_cpu); in set_task_cpu()
3198 __set_task_cpu(p, new_cpu); in set_task_cpu()
A Dsched.h2193 void (*migrate_task_rq)(struct task_struct *p, int new_cpu);
A Ddeadline.c1875 static void migrate_task_rq_dl(struct task_struct *p, int new_cpu __maybe_unused) in migrate_task_rq_dl()
/linux-6.3-rc2/arch/x86/hyperv/
A Dhv_init.c215 unsigned int new_cpu; in hv_cpu_die() local
254 new_cpu = cpumask_any_but(cpu_online_mask, cpu); in hv_cpu_die()
256 if (new_cpu < nr_cpu_ids) in hv_cpu_die()
257 re_ctrl.target_vp = hv_vp_index[new_cpu]; in hv_cpu_die()
/linux-6.3-rc2/drivers/gpu/drm/amd/amdkfd/
A Dkfd_device.c802 int cpu, new_cpu; in kfd_queue_work() local
804 cpu = new_cpu = smp_processor_id(); in kfd_queue_work()
806 new_cpu = cpumask_next(new_cpu, cpu_online_mask) % nr_cpu_ids; in kfd_queue_work()
807 if (cpu_to_node(new_cpu) == numa_node_id()) in kfd_queue_work()
809 } while (cpu != new_cpu); in kfd_queue_work()
811 queue_work_on(new_cpu, wq, work); in kfd_queue_work()
/linux-6.3-rc2/tools/perf/scripts/python/
A 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.3-rc2/drivers/hv/
A Dhyperv_vmbus.h450 unsigned int new_cpu) in hv_update_allocated_cpus() argument
452 hv_set_allocated_cpu(new_cpu); in hv_update_allocated_cpus()
/linux-6.3-rc2/drivers/perf/
A 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.3-rc2/arch/x86/events/intel/
A 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.3-rc2/drivers/scsi/lpfc/
A Dlpfc_init.c12559 new_cpu = start_cpu; in lpfc_cpu_affinity_check()
12566 new_cpu = cpumask_next( in lpfc_cpu_affinity_check()
12569 new_cpu = first_cpu; in lpfc_cpu_affinity_check()
12610 new_cpu = start_cpu; in lpfc_cpu_affinity_check()
12619 new_cpu = first_cpu; in lpfc_cpu_affinity_check()
12700 new_cpu = start_cpu; in lpfc_cpu_affinity_check()
12708 new_cpu = cpumask_next(new_cpu, cpu_present_mask); in lpfc_cpu_affinity_check()
12710 new_cpu = first_cpu; in lpfc_cpu_affinity_check()
12716 new_cpu = start_cpu; in lpfc_cpu_affinity_check()
12723 new_cpu = cpumask_next(new_cpu, cpu_present_mask); in lpfc_cpu_affinity_check()
[all …]
/linux-6.3-rc2/arch/arm64/kvm/vgic/
A Dvgic.c696 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-6.3-rc2/arch/powerpc/perf/
A Dimc-pmu.c338 static void nest_change_cpu_context(int old_cpu, int new_cpu) in nest_change_cpu_context() argument
342 if (old_cpu < 0 || new_cpu < 0) in nest_change_cpu_context()
346 perf_pmu_migrate_context(&(*pn)->pmu, old_cpu, new_cpu); in nest_change_cpu_context()
/linux-6.3-rc2/kernel/
A Dworkqueue.c1396 int new_cpu; in wq_select_unbound_cpu() local
1409 new_cpu = __this_cpu_read(wq_rr_cpu_last); in wq_select_unbound_cpu()
1410 new_cpu = cpumask_next_and(new_cpu, wq_unbound_cpumask, cpu_online_mask); in wq_select_unbound_cpu()
1411 if (unlikely(new_cpu >= nr_cpu_ids)) { in wq_select_unbound_cpu()
1412 new_cpu = cpumask_first_and(wq_unbound_cpumask, cpu_online_mask); in wq_select_unbound_cpu()
1413 if (unlikely(new_cpu >= nr_cpu_ids)) in wq_select_unbound_cpu()
1416 __this_cpu_write(wq_rr_cpu_last, new_cpu); in wq_select_unbound_cpu()
1418 return new_cpu; in wq_select_unbound_cpu()
/linux-6.3-rc2/tools/perf/
A Dbuiltin-sched.c1565 bool new_cpu = false; in map_switch_event() local
1578 new_cpu = true; in map_switch_event()
1685 if (sched->map.comp && new_cpu) in map_switch_event()

Completed in 131 milliseconds