| /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/drivers/thermal/intel/ |
| H A D | therm_throt.c | 654 unsigned int new_cpu; in disable_directed_thermal_pkg_intr() local 673 new_cpu = cpumask_any_but(topology_core_cpumask(cpu), cpu); in disable_directed_thermal_pkg_intr() 674 if (new_cpu < nr_cpu_ids) { in disable_directed_thermal_pkg_intr() 688 smp_call_function_single(new_cpu, config_directed_thermal_pkg_intr, in disable_directed_thermal_pkg_intr() 699 if (new_cpu < nr_cpu_ids && check_directed_thermal_pkg_intr_ack()) { in disable_directed_thermal_pkg_intr() 700 smp_call_function_single(new_cpu, config_directed_thermal_pkg_intr, in disable_directed_thermal_pkg_intr() 704 cpu, new_cpu); in disable_directed_thermal_pkg_intr() 706 new_cpu = nr_cpu_ids; in disable_directed_thermal_pkg_intr() 715 directed_intr_handler_cpus[pkg_id] = (new_cpu < nr_cpu_ids) ? new_cpu : nr_cpu_ids; in disable_directed_thermal_pkg_intr()
|
| /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 | 4663 static void update_scan_period(struct task_struct *p, int new_cpu) in rescale_entity() 4666 int dst_nid = cpu_to_node(new_cpu); in rescale_entity() 4711 static inline void update_scan_period(struct task_struct *p, int new_cpu) in rescale_entity() 8733 int new_cpu = cpu; in select_idle_cpu() 8761 new_cpu = sched_balance_find_dst_group_cpu(group, p, cpu); 8762 if (new_cpu == cpu) { 8768 /* Now try balancing at a lower domain level of 'new_cpu': */ 8769 cpu = new_cpu; 8780 return new_cpu; 9922 int new_cpu in wakeup_preempt_fair() 4466 update_scan_period(struct task_struct * p,int new_cpu) update_scan_period() argument 4514 update_scan_period(struct task_struct * p,int new_cpu) update_scan_period() argument 8517 int new_cpu = cpu; sched_balance_find_dst_cpu() local 9706 int new_cpu = prev_cpu; select_task_rq_fair() local 9773 migrate_task_rq_fair(struct task_struct * p,int new_cpu) migrate_task_rq_fair() argument [all...] |
| H A D | core.c | 779 * [S] ->cpu = new_cpu [L] task_rq() in _task_rq_lock() 2557 struct task_struct *p, int new_cpu) in move_queued_task() argument 2563 set_task_cpu(p, new_cpu); in move_queued_task() 2566 rq = cpu_rq(new_cpu); in move_queued_task() 2569 WARN_ON_ONCE(task_cpu(p) != new_cpu); in move_queued_task() 3351 void set_task_cpu(struct task_struct *p, unsigned int new_cpu) in set_task_cpu() argument 3389 WARN_ON_ONCE(!cpu_online(new_cpu)); in set_task_cpu() 3398 trace_sched_migrate_task(p, new_cpu); in set_task_cpu() 3400 if (task_cpu(p) != new_cpu) { in set_task_cpu() 3402 p->sched_class->migrate_task_rq(p, new_cpu); in set_task_cpu() [all...] |
| H A D | deadline.c | 2655 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 | 2691 void (*migrate_task_rq)(struct task_struct *p, int new_cpu);
|
| /linux/arch/x86/hyperv/ |
| H A D | hv_init.c | 273 unsigned int new_cpu; in hv_cpu_die() local 314 new_cpu = cpumask_any_but(cpu_online_mask, cpu); in hv_cpu_die() 316 if (new_cpu < nr_cpu_ids) in hv_cpu_die() 317 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 | 1515 int new_cpu) in uncore_change_type_ctx() argument 1521 die = topology_logical_die_id(old_cpu < 0 ? new_cpu : old_cpu); in uncore_change_type_ctx() 1531 box->cpu = new_cpu; in uncore_change_type_ctx() 1532 cpumask_set_cpu(new_cpu, &pmu->cpu_mask); in uncore_change_type_ctx() 1539 if (new_cpu < 0) { in uncore_change_type_ctx() 1548 perf_pmu_migrate_context(&pmu->pmu, old_cpu, new_cpu); in uncore_change_type_ctx() 1549 box->cpu = new_cpu; in uncore_change_type_ctx() 1550 cpumask_set_cpu(new_cpu, &pmu->cpu_mask); in uncore_change_type_ctx() 1555 int old_cpu, int new_cpu) in uncore_change_context() argument 1558 uncore_change_type_ctx(*uncores, old_cpu, new_cpu); in uncore_change_context()
|
| /linux/drivers/hv/ |
| H A D | hyperv_vmbus.h | 516 unsigned int new_cpu) in hv_update_allocated_cpus() argument 518 hv_set_allocated_cpu(new_cpu); in hv_update_allocated_cpus()
|
| /linux/drivers/perf/ |
| H A D | thunderx2_pmu.c | 931 unsigned int new_cpu; in tx2_uncore_pmu_offline_cpu() local 942 new_cpu = cpumask_any_and_but(cpumask_of_node(tx2_pmu->node), in tx2_uncore_pmu_offline_cpu() 945 tx2_pmu->cpu = new_cpu; in tx2_uncore_pmu_offline_cpu() 946 if (new_cpu >= nr_cpu_ids) in tx2_uncore_pmu_offline_cpu() 948 perf_pmu_migrate_context(&tx2_pmu->pmu, cpu, new_cpu); in tx2_uncore_pmu_offline_cpu()
|
| /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/drivers/scsi/lpfc/ |
| H A D | lpfc_init.c | 12431 int i, cpu, idx, next_idx, new_cpu, start_cpu, first_cpu; in lpfc_cpu_affinity_check() local 12495 new_cpu = start_cpu; in lpfc_cpu_affinity_check() 12497 new_cpup = &phba->sli4_hba.cpu_map[new_cpu]; in lpfc_cpu_affinity_check() 12502 new_cpu = lpfc_next_present_cpu(new_cpu); in lpfc_cpu_affinity_check() 12514 start_cpu = lpfc_next_present_cpu(new_cpu); in lpfc_cpu_affinity_check() 12520 cpu, cpup->eq, new_cpu, in lpfc_cpu_affinity_check() 12541 new_cpu = start_cpu; in lpfc_cpu_affinity_check() 12543 new_cpup = &phba->sli4_hba.cpu_map[new_cpu]; in lpfc_cpu_affinity_check() 12547 new_cpu = lpfc_next_present_cpu(new_cpu); in lpfc_cpu_affinity_check() 12563 start_cpu = lpfc_next_present_cpu(new_cpu); in lpfc_cpu_affinity_check() [all …]
|
| /linux/kernel/ |
| H A D | workqueue.c | 2303 int new_cpu; in wq_select_unbound_cpu() local 2312 new_cpu = __this_cpu_read(wq_rr_cpu_last); in wq_select_unbound_cpu() 2313 new_cpu = cpumask_next_and_wrap(new_cpu, wq_unbound_cpumask, cpu_online_mask); in wq_select_unbound_cpu() 2314 if (unlikely(new_cpu >= nr_cpu_ids)) in wq_select_unbound_cpu() 2316 __this_cpu_write(wq_rr_cpu_last, new_cpu); in wq_select_unbound_cpu() 2318 return new_cpu; in wq_select_unbound_cpu()
|
| /linux/tools/perf/ |
| H A D | builtin-sched.c | 1865 bool new_cpu = false; 1885 new_cpu = true; in perf_sched__process_comm() 1987 if (sched->map.comp && new_cpu) in evsel__get_runtime() 1644 bool new_cpu = false; map_switch_event() local
|