/linux/tools/testing/selftests/kvm/aarch64/ |
H A D | psci_test.c | 25 static uint64_t psci_cpu_on(uint64_t target_cpu, uint64_t entry_addr, in psci_cpu_on() argument 30 smccc_hvc(PSCI_0_2_FN64_CPU_ON, target_cpu, entry_addr, context_id, in psci_cpu_on() 116 static void guest_test_cpu_on(uint64_t target_cpu) in guest_test_cpu_on() argument 120 GUEST_ASSERT(!psci_cpu_on(target_cpu, CPU_ON_ENTRY_ADDR, CPU_ON_CONTEXT_ID)); in guest_test_cpu_on() 123 target_state = psci_affinity_info(target_cpu, 0); in guest_test_cpu_on()
|
/linux/tools/perf/scripts/perl/ |
H A D | wakeup-latency.pl | 55 $comm, $pid, $prio, $success, $target_cpu) = @_; 57 $last_wakeup{$target_cpu}{ts} = nsecs($common_secs, $common_nsecs);
|
/linux/drivers/hv/ |
H A D | channel_mgmt.c | 473 hv_clear_allocated_cpu(channel->target_cpu); in hv_process_channel_removal() 716 if (primary->target_cpu == cpu) in hv_cpuself_used() 720 if (sc != chn && sc->target_cpu == cpu) in hv_cpuself_used() 747 u32 target_cpu; in init_vp_index() local 761 channel->target_cpu = VMBUS_CONNECT_CPU; in init_vp_index() 793 target_cpu = cpumask_first(available_mask); in init_vp_index() 794 cpumask_set_cpu(target_cpu, allocated_mask); in init_vp_index() 797 i > ncpu || !hv_cpuself_used(target_cpu, channel)) in init_vp_index() 801 channel->target_cpu = target_cpu; in init_vp_index()
|
H A D | vmbus_drv.c | 487 channel->target_cpu); in channel_vp_mapping_show() 494 cur_sc->target_cpu); in channel_vp_mapping_show() 1584 return sprintf(buf, "%u\n", channel->target_cpu); in target_cpu_show() 1589 u32 target_cpu, origin_cpu; in target_cpu_store() local 1595 if (sscanf(buf, "%uu", &target_cpu) != 1) in target_cpu_store() 1599 if (target_cpu >= nr_cpumask_bits) in target_cpu_store() 1608 if (!cpu_online(target_cpu)) { in target_cpu_store() 1646 origin_cpu = channel->target_cpu; in target_cpu_store() 1647 if (target_cpu == origin_cpu) in target_cpu_store() 1671 channel->target_cpu = target_cpu; in target_cpu_store() [all …]
|
H A D | hyperv_vmbus.h | 437 if (channel->target_cpu == cpu) in hv_is_allocated_cpu() 440 if (sc->target_cpu == cpu) in hv_is_allocated_cpu()
|
H A D | hv.c | 467 if (channel->target_cpu == cpu) { in hv_synic_cleanup() 472 if (sc->target_cpu == cpu) { in hv_synic_cleanup()
|
H A D | channel.c | 178 page = alloc_pages_node(cpu_to_node(newchannel->target_cpu), in vmbus_alloc_ring() 713 open_msg->target_vp = hv_cpu_number_to_vp_number(newchannel->target_cpu); in __vmbus_open()
|
/linux/arch/sparc/kernel/ |
H A D | sun4d_irq.c | 487 int target_cpu; in sun4d_init_sbi_irq() local 489 target_cpu = boot_cpu_id; in sun4d_init_sbi_irq() 495 set_sbi_tid(devid, target_cpu << 3); in sun4d_init_sbi_irq() 496 board_to_cpu[board] = target_cpu; in sun4d_init_sbi_irq()
|
/linux/tools/perf/scripts/python/ |
H A D | sched-migration.py | 355 def wake_up(self, headers, comm, pid, success, target_cpu, fork): argument 359 ts.wake_up(self.timeslices, pid, target_cpu, fork) 433 target_cpu): argument 436 parser.wake_up(headers, comm, pid, success, target_cpu, 1) 441 target_cpu): argument 444 parser.wake_up(headers, comm, pid, success, target_cpu, 0)
|
/linux/drivers/irqchip/ |
H A D | irq-apple-aic.c | 244 u32 target_cpu; member 261 .target_cpu = AIC_TARGET_CPU, 268 .target_cpu = AIC_TARGET_CPU, 413 BUG_ON(!ic->info.target_cpu); in aic_irq_set_affinity() 420 aic_ic_write(ic, ic->info.target_cpu + AIC_HWIRQ_IRQ(hwirq) * 4, BIT(cpu)); in aic_irq_set_affinity() 951 off = start_off = irqc->info.target_cpu; in aic_of_ic_init() 1025 if (irqc->info.target_cpu) in aic_of_ic_init() 1027 aic_ic_write(irqc, irqc->info.target_cpu + off + i * 4, 1); in aic_of_ic_init()
|
/linux/drivers/pci/controller/ |
H A D | pci-xgene-msi.c | 175 int target_cpu = cpumask_first(mask); in xgene_msi_set_affinity() local 179 if (curr_cpu == target_cpu) in xgene_msi_set_affinity() 183 irqdata->hwirq = hwirq_to_canonical_hwirq(irqdata->hwirq) + target_cpu; in xgene_msi_set_affinity()
|
H A D | pcie-iproc-msi.c | 210 int target_cpu = cpumask_first(mask); in iproc_msi_irq_set_affinity() local 215 if (curr_cpu == target_cpu) in iproc_msi_irq_set_affinity() 219 data->hwirq = hwirq_to_canonical_hwirq(msi, data->hwirq) + target_cpu; in iproc_msi_irq_set_affinity() 223 irq_data_update_effective_affinity(data, cpumask_of(target_cpu)); in iproc_msi_irq_set_affinity()
|
/linux/tools/perf/bench/ |
H A D | numa.c | 270 static cpu_set_t *bind_to_cpu(int target_cpu) in bind_to_cpu() argument 290 if (target_cpu == -1) { in bind_to_cpu() 296 if (target_cpu < 0 || target_cpu >= g->p.nr_cpus) in bind_to_cpu() 299 CPU_SET_S(target_cpu, size, mask); in bind_to_cpu() 1278 int target_cpu; in worker_thread() local 1290 target_cpu = g->p.nr_cpus-1; in worker_thread() 1292 target_cpu = 0; in worker_thread() 1294 orig_mask = bind_to_cpu(target_cpu); in worker_thread() 1298 printf(" (injecting perturbalance, moved to CPU#%d)\n", target_cpu); in worker_thread()
|
/linux/arch/powerpc/platforms/pseries/ |
H A D | mobility.c | 492 static void prod_single(unsigned int target_cpu) in prod_single() argument 497 hwid = get_hard_smp_processor_id(target_cpu); in prod_single() 502 target_cpu, hwid, hvrc); in prod_single()
|
/linux/kernel/ |
H A D | padata.c | 52 int cpu, target_cpu; in padata_index_to_cpu() local 54 target_cpu = cpumask_first(pd->cpumask.pcpu); in padata_index_to_cpu() 56 target_cpu = cpumask_next(target_cpu, pd->cpumask.pcpu); in padata_index_to_cpu() 58 return target_cpu; in padata_index_to_cpu()
|
/linux/drivers/scsi/ |
H A D | storvsc_drv.c | 623 if (device->channel != channel && device->channel->target_cpu == old) { in storvsc_change_target_cpu() 631 if (cur_chn->target_cpu == old) { in storvsc_change_target_cpu() 706 stor_device->stor_chns[new_sc->target_cpu] = new_sc; in handle_sc_creation() 707 cpumask_set_cpu(new_sc->target_cpu, &stor_device->alloced_cpus); in handle_sc_creation() 932 stor_device->stor_chns[device->channel->target_cpu] = device->channel; in storvsc_channel_init() 933 cpumask_set_cpu(device->channel->target_cpu, in storvsc_channel_init() 1460 if (outgoing_channel->target_cpu == q_num) { in storvsc_do_io()
|
/linux/include/trace/events/ |
H A D | sched.h | 151 __field( int, target_cpu ) 158 __entry->target_cpu = task_cpu(p); 163 __entry->target_cpu)
|
/linux/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-eth-debugfs.c | 82 fq->target_cpu, in dpaa2_dbg_fqs_show()
|
H A D | dpaa2-eth.h | 463 int target_cpu; member
|
H A D | dpaa2-eth.c | 2917 cpumask_set_cpu(fq->target_cpu, xps_mask); in update_xps() 3315 fq->target_cpu = rx_cpu; in dpaa2_eth_set_fq_affinity() 3321 fq->target_cpu = txc_cpu; in dpaa2_eth_set_fq_affinity() 3329 fq->channel = dpaa2_eth_get_affine_channel(priv, fq->target_cpu); in dpaa2_eth_set_fq_affinity()
|
/linux/tools/perf/Documentation/ |
H A D | perf-script-perl.txt | 71 field:int target_cpu; 81 $comm, $pid, $prio, $success, $target_cpu) = @_;
|
H A D | perf-script-python.txt | 465 field:int target_cpu; 473 comm, pid, prio, success, target_cpu):
|
/linux/Documentation/trace/ |
H A D | histogram.rst | 2407 …<idle>-0 [005] d.h3 309.873611: sched_waking: comm=cyclictest pid=2102 prio=19 target_cpu=005 2408 …<idle>-0 [005] dNh4 309.873613: sched_wakeup: comm=cyclictest pid=2102 prio=19 target_cpu=005 2411 …<idle>-0 [005] d.h3 309.874624: sched_waking: comm=cyclictest pid=2102 prio=19 target_cpu=005 2412 …<idle>-0 [005] dNh4 309.874626: sched_wakeup: comm=cyclictest pid=2102 prio=19 target_cpu=005 2413 …<idle>-0 [005] dNh3 309.874628: sched_waking: comm=cyclictest pid=2103 prio=19 target_cpu=005 2414 …<idle>-0 [005] dNh4 309.874630: sched_wakeup: comm=cyclictest pid=2103 prio=19 target_cpu=005 2416 …-0 [004] d.h3 309.874757: sched_waking: comm=gnome-terminal- pid=1699 prio=120 target_cpu=004 2417 …-0 [004] dNh4 309.874762: sched_wakeup: comm=gnome-terminal- pid=1699 prio=120 target_cpu=004 2420 … <idle>-0 [003] d.s4 309.874956: sched_waking: comm=rcu_sched pid=9 prio=120 target_cpu=007 2422 … <idle>-0 [003] d.s5 309.874961: sched_wakeup: comm=rcu_sched pid=9 prio=120 target_cpu=007
|
/linux/include/linux/ |
H A D | hyperv.h | 930 u32 target_cpu; member
|
/linux/kernel/sched/ |
H A D | core.c | 3476 int target_cpu, int curr_cpu) in migrate_swap() argument 3485 .dst_cpu = target_cpu, in migrate_swap() 9368 int migrate_task_to(struct task_struct *p, int target_cpu) in migrate_task_to() argument 9370 struct migration_arg arg = { p, target_cpu }; in migrate_task_to() 9373 if (curr_cpu == target_cpu) in migrate_task_to() 9376 if (!cpumask_test_cpu(target_cpu, p->cpus_ptr)) in migrate_task_to() 9381 trace_sched_move_numa(p, curr_cpu, target_cpu); in migrate_task_to()
|