/linux/drivers/irqchip/ |
A D | irq-bcm6345-l1.c | 200 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/arch/ia64/kernel/ |
A D | irq.c | 82 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/kernel/sched/ |
A D | cpudeadline.c | 176 int old_idx, new_cpu; in cpudl_clear() local 191 new_cpu = cp->elements[cp->size - 1].cpu; in cpudl_clear() 193 cp->elements[old_idx].cpu = new_cpu; in cpudl_clear() 195 cp->elements[new_cpu].idx = old_idx; in cpudl_clear()
|
A D | fair.c | 6044 int new_cpu = cpu; in find_idlest_cpu() local 6073 if (new_cpu == cpu) { in find_idlest_cpu() 6080 cpu = new_cpu; in find_idlest_cpu() 6091 return new_cpu; in find_idlest_cpu() 6881 int new_cpu = prev_cpu; in select_task_rq_fair() local 6895 if (new_cpu >= 0) in select_task_rq_fair() 6896 return new_cpu; in select_task_rq_fair() 6897 new_cpu = prev_cpu; in select_task_rq_fair() 6929 new_cpu = select_idle_sibling(p, prev_cpu, new_cpu); in select_task_rq_fair() 6933 return new_cpu; in select_task_rq_fair() [all …]
|
A D | core.c | 2250 struct task_struct *p, int new_cpu) in move_queued_task() argument 2255 set_task_cpu(p, new_cpu); in move_queued_task() 2258 rq = cpu_rq(new_cpu); in move_queued_task() 2261 BUG_ON(task_cpu(p) != new_cpu); in move_queued_task() 3012 void set_task_cpu(struct task_struct *p, unsigned int new_cpu) in set_task_cpu() argument 3049 WARN_ON_ONCE(!cpu_online(new_cpu)); in set_task_cpu() 3054 trace_sched_migrate_task(p, new_cpu); in set_task_cpu() 3056 if (task_cpu(p) != new_cpu) { in set_task_cpu() 3058 p->sched_class->migrate_task_rq(p, new_cpu); in set_task_cpu() 3064 __set_task_cpu(p, new_cpu); in set_task_cpu()
|
A D | sched.h | 2119 void (*migrate_task_rq)(struct task_struct *p, int new_cpu);
|
A D | deadline.c | 1805 static void migrate_task_rq_dl(struct task_struct *p, int new_cpu __maybe_unused) in migrate_task_rq_dl()
|
/linux/arch/x86/hyperv/ |
A D | hv_init.c | 215 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/tools/perf/scripts/python/ |
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/drivers/gpu/drm/amd/amdkfd/ |
A D | kfd_device.c | 1210 int cpu, new_cpu; in kfd_queue_work() local 1212 cpu = new_cpu = smp_processor_id(); in kfd_queue_work() 1214 new_cpu = cpumask_next(new_cpu, cpu_online_mask) % nr_cpu_ids; in kfd_queue_work() 1215 if (cpu_to_node(new_cpu) == numa_node_id()) in kfd_queue_work() 1217 } while (cpu != new_cpu); in kfd_queue_work() 1219 queue_work_on(new_cpu, wq, work); in kfd_queue_work()
|
/linux/drivers/hv/ |
A D | hyperv_vmbus.h | 443 unsigned int new_cpu) in hv_update_alloced_cpus() argument 445 hv_set_alloced_cpu(new_cpu); in hv_update_alloced_cpus()
|
/linux/drivers/perf/ |
A D | thunderx2_pmu.c | 937 int new_cpu; in tx2_uncore_pmu_offline_cpu() local 952 new_cpu = cpumask_any_and( in tx2_uncore_pmu_offline_cpu() 956 tx2_pmu->cpu = new_cpu; in tx2_uncore_pmu_offline_cpu() 957 if (new_cpu >= nr_cpu_ids) in tx2_uncore_pmu_offline_cpu() 959 perf_pmu_migrate_context(&tx2_pmu->pmu, cpu, new_cpu); in tx2_uncore_pmu_offline_cpu()
|
/linux/arch/x86/events/intel/ |
A D | uncore.c | 1436 int new_cpu) in uncore_change_type_ctx() argument 1442 die = topology_logical_die_id(old_cpu < 0 ? new_cpu : old_cpu); in uncore_change_type_ctx() 1450 box->cpu = new_cpu; in uncore_change_type_ctx() 1456 if (new_cpu < 0) in uncore_change_type_ctx() 1460 perf_pmu_migrate_context(&pmu->pmu, old_cpu, new_cpu); in uncore_change_type_ctx() 1461 box->cpu = new_cpu; in uncore_change_type_ctx() 1466 int old_cpu, int new_cpu) in uncore_change_context() argument 1469 uncore_change_type_ctx(*uncores, old_cpu, new_cpu); in uncore_change_context()
|
/linux/drivers/scsi/lpfc/ |
A D | lpfc_init.c | 12374 new_cpu = start_cpu; in lpfc_cpu_affinity_check() 12381 new_cpu = cpumask_next( in lpfc_cpu_affinity_check() 12384 new_cpu = first_cpu; in lpfc_cpu_affinity_check() 12425 new_cpu = start_cpu; in lpfc_cpu_affinity_check() 12434 new_cpu = first_cpu; in lpfc_cpu_affinity_check() 12515 new_cpu = start_cpu; in lpfc_cpu_affinity_check() 12523 new_cpu = cpumask_next(new_cpu, cpu_present_mask); in lpfc_cpu_affinity_check() 12525 new_cpu = first_cpu; in lpfc_cpu_affinity_check() 12531 new_cpu = start_cpu; in lpfc_cpu_affinity_check() 12538 new_cpu = cpumask_next(new_cpu, cpu_present_mask); in lpfc_cpu_affinity_check() [all …]
|
/linux/kernel/ |
A D | workqueue.c | 1396 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/arch/powerpc/perf/ |
A D | imc-pmu.c | 330 static void nest_change_cpu_context(int old_cpu, int new_cpu) in nest_change_cpu_context() argument 334 if (old_cpu < 0 || new_cpu < 0) in nest_change_cpu_context() 338 perf_pmu_migrate_context(&(*pn)->pmu, old_cpu, new_cpu); in nest_change_cpu_context()
|
/linux/arch/arm64/kvm/vgic/ |
A 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/tools/perf/ |
A D | builtin-sched.c | 1540 bool new_cpu = false; in map_switch_event() local 1553 new_cpu = true; in map_switch_event() 1658 if (sched->map.comp && new_cpu) in map_switch_event()
|