/linux-master/scripts/gdb/linux/ |
H A D | timerlist.py | 68 def print_cpu(hrtimer_bases, cpu, max_clock_bases): 69 cpu_base = cpus.per_cpu(hrtimer_bases, cpu) 72 ts = cpus.per_cpu(tick_sched_ptr, cpu) 74 text = "cpu: {}\n".format(cpu) 112 def print_tickdevice(td, cpu): 115 if cpu < 0: 118 text += "Per CPU device: {}\n".format(cpu) 195 for cpu in cpus.each_online_cpu(): 196 text += print_cpu(hrtimer_bases, cpu, max_clock_base [all...] |
H A D | interrupts.py | 39 for cpu in cpus.each_online_cpu(): 40 any_count += cpus.per_cpu(desc['kstat_irqs'], cpu)['cnt'] 46 for cpu in cpus.each_online_cpu(): 48 count = cpus.per_cpu(desc['kstat_irqs'], cpu)['cnt'] 103 for cpu in cpus.each_online_cpu(): 104 stat = cpus.per_cpu(irq_stat, cpu) 112 for cpu in cpus.each_online_cpu(): 113 text += "%10u " % (cpus.per_cpu(pvar, cpu)) 179 for cpu in cpus.each_online_cpu(): 180 text += "%10u" % (cpus.per_cpu(desc['kstat_irqs'], cpu)['cn [all...] |
/linux-master/drivers/soc/fsl/dpio/ |
H A D | dpio-driver.c | 55 static int dpaa2_dpio_get_cluster_sdest(struct fsl_mc_device *dpio_dev, int cpu) argument 72 return cluster_base + cpu / cluster_size; 93 static int register_dpio_irq_handlers(struct fsl_mc_device *dpio_dev, int cpu) argument 113 if (irq_set_affinity_hint(irq->virq, cpumask_of(cpu))) 115 "irq_set_affinity failed irq %d cpu %d\n", 116 irq->virq, cpu); 177 /* get the cpu to use for the affinity hint */ 184 desc.cpu = possible_next_cpu; 187 sdest = dpaa2_dpio_get_cluster_sdest(dpio_dev, desc.cpu); 193 dev_err(dev, "dpio_set_stashing_destination failed for cpu 277 int err = 0, cpu; local [all...] |
/linux-master/drivers/cpufreq/ |
H A D | sparc-us2e-cpufreq.c | 2 /* us2e_cpufreq.c: UltraSPARC-IIe cpu frequency support 27 /* Indexed by cpu number. */ 232 static unsigned int us2e_freq_get(unsigned int cpu) argument 236 clock_tick = sparc64_get_clock_tick(cpu) / 1000; 237 if (smp_call_function_single(cpu, __us2e_freq_get, &estar, 1)) 245 unsigned int cpu = smp_processor_id(); local 250 new_freq = clock_tick = sparc64_get_clock_tick(cpu) / 1000; 267 unsigned int cpu = policy->cpu; local 269 return smp_call_function_single(cpu, __us2e_freq_targe 274 unsigned int cpu = policy->cpu; local [all...] |
H A D | amd-pstate.c | 204 epp = rdmsrl_on_cpu(cpudata->cpu, MSR_AMD_CPPC_REQ, 211 ret = cppc_get_epp_perf(cpudata->cpu, &epp); 262 ret = wrmsrl_on_cpu(cpudata->cpu, MSR_AMD_CPPC_REQ, value); 267 ret = cppc_set_epp_perf(cpudata->cpu, &perf_ctrls, 1); 304 int ret, cpu; local 310 for_each_present_cpu(cpu) { 311 unsigned long logical_id = topology_logical_die_id(cpu); 318 ret = wrmsrl_safe_on_cpu(cpu, MSR_AMD_CPPC_ENABLE, 330 int cpu, ret = 0; local 336 for_each_present_cpu(cpu) { 648 amd_pstate_adjust_perf(unsigned int cpu, unsigned long _min_perf, unsigned long target_perf, unsigned long capacity) argument 730 amd_perf_ctl_reset(unsigned int cpu) argument 752 amd_pstate_get_highest_perf(int cpu, u32 *highest_perf) argument 809 amd_pstate_update_limits(unsigned int cpu) argument 847 amd_pstate_get_transition_delay_us(unsigned int cpu) argument 862 amd_pstate_get_transition_latency(unsigned int cpu) argument 1212 int cpu = 0; local [all...] |
/linux-master/drivers/dma/idxd/ |
H A D | submit.c | 11 static struct idxd_desc *__get_desc(struct idxd_wq *wq, int idx, int cpu) argument 19 desc->cpu = cpu; 29 int cpu, idx; local 39 idx = sbitmap_queue_get(sbq, &cpu); 44 return __get_desc(wq, idx, cpu); 52 idx = sbitmap_queue_get(sbq, &cpu); 62 return __get_desc(wq, idx, cpu); 68 int cpu = desc->cpu; local [all...] |
/linux-master/arch/mips/mm/ |
H A D | tlb-r3k.c | 25 #include <asm/cpu.h> 72 int cpu = smp_processor_id(); local 74 if (cpu_context(cpu, mm) != 0) { 79 cpu_context(cpu, mm) & asid_mask, start, end); 85 int newpid = cpu_context(cpu, mm) & asid_mask; 150 int cpu = smp_processor_id(); local 152 if (cpu_context(cpu, vma->vm_mm) != 0) { 157 printk("[tlbpage<%lu,0x%08lx>]", cpu_context(cpu, vma->vm_mm), page); 159 newpid = cpu_context(cpu, vma->vm_mm) & asid_mask; 194 if ((pid != (cpu_context(cpu, vm [all...] |
/linux-master/arch/x86/include/asm/ |
H A D | cpu.h | 6 #include <linux/cpu.h> 13 #define cpu_physical_id(cpu) boot_cpu_physical_apicid 14 #define cpu_acpi_id(cpu) 0
|
/linux-master/arch/xtensa/mm/ |
H A D | tlb.c | 66 int cpu = smp_processor_id(); local 71 mm->context.asid[cpu] = NO_CONTEXT; 72 activate_context(mm, cpu); 75 mm->context.asid[cpu] = NO_CONTEXT; 76 mm->context.cpu = -1; 92 int cpu = smp_processor_id(); local 96 if (mm->context.asid[cpu] == NO_CONTEXT) 100 (unsigned long)mm->context.asid[cpu], start, end); 106 set_rasid_register(ASID_INSERT(mm->context.asid[cpu])); 129 int cpu local [all...] |
/linux-master/drivers/xen/events/ |
H A D | events_base.c | 18 * 2. VIRQs, typically used for timers. These are per-cpu events. 89 * cpu - cpu this event channel is bound to 112 unsigned short cpu; /* cpu bound */ member in struct:irq_info 113 unsigned short eoi_cpu; /* EOI must happen on this cpu-1 */ 167 /* Cache for IPI event channels - needed for hot cpu unplug (avoid RCU usage). */ 288 if (WARN_ON_ONCE(info->cpu >= nr_cpu_ids)) 291 WARN_ON_ONCE(!atomic_add_unless(&channels_on_cpu[info->cpu], -1 , 0)); 296 if (WARN_ON_ONCE(info->cpu > 328 xen_irq_info_common_setup(struct irq_info *info, enum xen_irq_type type, evtchn_port_t evtchn, unsigned short cpu) argument 366 xen_irq_info_ipi_setup(struct irq_info *info, unsigned int cpu, evtchn_port_t evtchn, enum ipi_vector ipi) argument 377 xen_irq_info_virq_setup(struct irq_info *info, unsigned int cpu, evtchn_port_t evtchn, unsigned int virq) argument 430 irq_evtchn_from_virq(unsigned int cpu, unsigned int virq, evtchn_port_t *evtchn) argument 513 bind_evtchn_to_cpu(struct irq_info *info, unsigned int cpu, bool force_affinity) argument 600 unsigned int cpu; local 689 xen_cpu_init_eoi(unsigned int cpu) argument 975 unsigned int cpu = info->cpu; local 1251 bind_ipi_to_irq(unsigned int ipi, unsigned int cpu) argument 1323 find_virq(unsigned int virq, unsigned int cpu, evtchn_port_t *evtchn) argument 1359 bind_virq_to_irq(unsigned int virq, unsigned int cpu, bool percpu) argument 1504 bind_virq_to_irqhandler(unsigned int virq, unsigned int cpu, irq_handler_t handler, unsigned long irqflags, const char *devname, void *dev_id) argument 1523 bind_ipi_to_irqhandler(enum ipi_vector ipi, unsigned int cpu, irq_handler_t handler, unsigned long irqflags, const char *devname, void *dev_id) argument 1628 xen_send_IPI_one(unsigned int cpu, enum ipi_vector vector) argument 1702 int cpu = smp_processor_id(); local 1811 unsigned int cpu, best_cpu = UINT_MAX, minch = UINT_MAX; local 1960 restore_cpu_virqs(unsigned int cpu) argument 1989 restore_cpu_ipis(unsigned int cpu) argument 2083 unsigned int cpu; local 2202 xen_set_upcall_vector(unsigned int cpu) argument 2232 xen_set_upcall_vector(unsigned int cpu) argument 2240 xen_evtchn_cpu_prepare(unsigned int cpu) argument 2252 xen_evtchn_cpu_dead(unsigned int cpu) argument [all...] |
/linux-master/drivers/hwtracing/coresight/ |
H A D | coresight-trbe.c | 3 * This driver enables Trace Buffer Extension (TRBE) as a per-cpu coresight 4 * sink device could then pair with an appropriate per-cpu coresight source 122 * @cpu - CPU this TRBE belongs to. 131 int cpu; member in struct:trbe_cpudata 205 if (event->cpu == -1) 207 return cpu_to_node(event->cpu); 794 WARN_ON(cpudata->cpu != smp_processor_id()); 1018 WARN_ON(cpudata->cpu != smp_processor_id()); 1037 WARN_ON(cpudata->cpu != smp_processor_id()); 1096 int cpu local 1239 arm_trbe_register_coresight_cpu(struct trbe_drvdata *drvdata, int cpu) argument 1294 int cpu = smp_processor_id(); local 1353 arm_trbe_remove_coresight_cpu(struct trbe_drvdata *drvdata, int cpu) argument 1365 int cpu; local 1385 int cpu; local 1402 arm_trbe_cpu_startup(unsigned int cpu, struct hlist_node *node) argument 1425 arm_trbe_cpu_teardown(unsigned int cpu, struct hlist_node *node) argument [all...] |
/linux-master/kernel/bpf/ |
H A D | bpf_lru_list.c | 22 static int get_next_cpu(int cpu) argument 24 cpu = cpumask_next(cpu, cpu_possible_mask); 25 if (cpu >= nr_cpu_ids) 26 cpu = cpumask_first(cpu_possible_mask); 27 return cpu; 354 int cpu, 359 node->cpu = cpu; 411 int cpu local 352 __local_list_add_pending(struct bpf_lru *lru, struct bpf_lru_locallist *loc_l, int cpu, struct bpf_lru_node *node, u32 hash) argument 444 int cpu = raw_smp_processor_id(); local 587 int cpu; local 624 bpf_lru_locallist_init(struct bpf_lru_locallist *loc_l, int cpu) argument 654 int cpu; local [all...] |
/linux-master/arch/powerpc/platforms/powernv/ |
H A D | idle.c | 13 #include <linux/cpu.h> 55 * Used when a cpu is offlined. 66 int cpu; local 71 * all cpus at boot. Get these reg values of current cpu and use the 80 for_each_present_cpu(cpu) { 81 uint64_t pir = get_hard_smp_processor_id(cpu); 82 uint64_t hsprg0_val = (uint64_t)paca_ptrs[cpu]; 105 if (cpu_thread_in_core(cpu) == 0) { 148 int cpu = smp_processor_id(); local 152 if (cpu_first_thread_sibling(cpu) ! 227 int cpu = raw_smp_processor_id(); local 237 int cpu = raw_smp_processor_id(); local 247 int cpu = raw_smp_processor_id(); local 257 int cpu = raw_smp_processor_id(); local 280 int cpu = raw_smp_processor_id(); local 316 int cpu = raw_smp_processor_id(); local 610 int cpu = raw_smp_processor_id(); local 819 int cpu, cpu0, thr; local 865 int cpu, cpu0, thr; local 895 int cpu = raw_smp_processor_id(); local 1040 pnv_program_cpu_hotplug_lpcr(unsigned int cpu, u64 lpcr_val) argument 1059 pnv_cpu_offline(unsigned int cpu) argument 1430 int cpu; local [all...] |
/linux-master/drivers/bus/ |
H A D | arm-cci.c | 124 * Code disabling CCI cpu ports runs with D-cache invalidated 152 * a cpu or device. 184 int port, cpu; local 194 for_each_possible_cpu(cpu) { 195 /* too early to use cpu->of_node */ 196 cpun = of_get_cpu_node(cpu, NULL); 198 if (WARN(!cpun, "Missing cpu device node\n")) 205 init_cpu_port(&cpu_port[cpu], port, cpu_logical_map(cpu)); 208 for_each_possible_cpu(cpu) { 267 int cpu; local [all...] |
/linux-master/drivers/media/platform/verisilicon/ |
H A D | hantro_vp9.c | 120 struct symbol_counts *cnts = vp9_ctx->misc.cpu + vp9_ctx->ctx_counters_offset; 185 tile_edge->cpu = dma_alloc_coherent(vpu->dev, size, &tile_edge->dma, GFP_KERNEL); 186 if (!tile_edge->cpu) 190 memset(tile_edge->cpu, 0, size); 196 segment_map->cpu = dma_alloc_coherent(vpu->dev, size, &segment_map->dma, GFP_KERNEL); 197 if (!segment_map->cpu) 201 memset(segment_map->cpu, 0, size); 209 misc->cpu = dma_alloc_coherent(vpu->dev, size, &misc->dma, GFP_KERNEL); 210 if (!misc->cpu) 214 memset(misc->cpu, [all...] |
/linux-master/drivers/nvdimm/ |
H A D | nd_perf.c | 126 return cpumap_print_to_pagebuf(true, buf, cpumask_of(nd_pmu->cpu)); 129 static int nvdimm_pmu_cpu_offline(unsigned int cpu, struct hlist_node *node) argument 138 /* Clear it, incase given cpu is set in nd_pmu->arch_cpumask */ 139 cpumask_test_and_clear_cpu(cpu, &nd_pmu->arch_cpumask); 142 * If given cpu is not same as current designated cpu for 145 if (cpu != nd_pmu->cpu) 148 /* Check for any active cpu in nd_pmu->arch_cpumask */ 152 * Incase we don't have any active cpu i 169 nvdimm_pmu_cpu_online(unsigned int cpu, struct hlist_node *node) argument [all...] |
/linux-master/arch/sparc/kernel/ |
H A D | leon_smp.c | 27 #include <linux/cpu.h> 114 printk(KERN_INFO "Note: SMP with snooping only works on 4k cache, found %dk(0x%x) on cpu %d, disabling caches\n", 122 printk(KERN_INFO "Note: You have to enable snooping in the vhdl model cpu %d, disabling caches\n", 190 * we need to re-initialize it for each cpu 234 /* setup cpu list for irq rotation */ 274 int cpu, len; local 297 for_each_possible_cpu(cpu) { 298 work = &per_cpu(leon_ipi_work, cpu); 303 static void leon_send_ipi(int cpu, int level) argument 307 LEON3_BYPASS_STORE_PA(&leon3_irqctrl_regs->force[cpu], mas 310 leon_ipi_single(int cpu) argument 321 leon_ipi_mask_one(int cpu) argument 332 leon_ipi_resched(int cpu) argument [all...] |
/linux-master/kernel/ |
H A D | scftorture.c | 14 #include <linux/cpu.h> 82 int cpu; member in struct:scf_statistics 148 extern void resched_cpu(int cpu); // An alternative IPI vector. 153 int cpu; local 159 for_each_possible_cpu(cpu) 160 invoked_count += data_race(per_cpu(scf_invoked_count, cpu)); 317 uintptr_t cpu; local 342 cpu = torture_random(trsp) % nr_cpu_ids; 344 resched_cpu(cpu); 349 cpu 448 int cpu; local [all...] |
/linux-master/arch/arm/mach-mediatek/ |
H A D | platsmp.c | 61 static int mtk_boot_secondary(unsigned int cpu, struct task_struct *idle) argument 66 if (!mtk_smp_info->core_keys[cpu-1]) 69 writel_relaxed(mtk_smp_info->core_keys[cpu-1], 70 mtk_smp_base + mtk_smp_info->core_regs[cpu-1]); 72 arch_send_wakeup_ipi_mask(cpumask_of(cpu));
|
/linux-master/arch/mips/sgi-ip27/ |
H A D | ip27-init.c | 17 #include <asm/cpu.h> 73 int cpu = smp_processor_id(); local 80 pr_info("CPU %d clock is %dMHz.\n", cpu, sn_cpu_info[cpu].p_speed); 85 install_cpu_nmi_handler(cputoslice(cpu)); 101 * hub_rtc init and cpu clock intr enabled for later calibrate_delay.
|
/linux-master/tools/testing/selftests/intel_pstate/ |
H A D | aperf.c | 24 unsigned int i, cpu, fd; local 39 cpu = strtol(argv[1], (char **) NULL, 10); 46 sprintf(msr_file_name, "/dev/cpu/%d/msr", cpu); 50 printf("/dev/cpu/%d/msr: %s\n", cpu, strerror(errno)); 55 CPU_SET(cpu, &cpuset); 58 perror("Failed to set cpu affinity");
|
/linux-master/arch/arm/mach-imx/ |
H A D | platsmp.c | 43 static int imx_boot_secondary(unsigned int cpu, struct task_struct *idle) argument 45 imx_set_cpu_jump(cpu, v7_secondary_startup); 46 imx_enable_cpu(cpu, true); 76 * in bootloader, they are set only for boot cpu. But on a SMP 78 * Read the register from boot cpu here, and will replicate it into 123 static int ls1021a_boot_secondary(unsigned int cpu, struct task_struct *idle) argument 125 arch_send_wakeup_ipi_mask(cpumask_of(cpu));
|
/linux-master/arch/arm64/kernel/ |
H A D | paravirt.c | 30 static u64 native_steal_clock(int cpu) argument 53 static u64 para_steal_clock(int cpu) argument 59 reg = per_cpu_ptr(&stolen_time_region, cpu); 78 static int stolen_time_cpu_down_prepare(unsigned int cpu) argument 94 static int stolen_time_cpu_online(unsigned int cpu) argument
|
/linux-master/drivers/platform/x86/intel/ifs/ |
H A D | sysfs.c | 4 #include <linux/cpu.h> 67 unsigned int cpu; local 70 rc = kstrtouint(buf, 0, &cpu); 71 if (rc < 0 || cpu >= nr_cpu_ids) 77 rc = do_core_test(cpu, dev);
|
/linux-master/arch/arm/mach-exynos/ |
H A D | common.h | 123 void exynos_set_boot_flag(unsigned int cpu, unsigned int mode); 124 void exynos_clear_boot_flag(unsigned int cpu, unsigned int mode); 137 extern void exynos_cpu_power_down(int cpu); 138 extern void exynos_cpu_power_up(int cpu); 139 extern int exynos_cpu_power_state(int cpu);
|