/linux-master/arch/riscv/include/asm/ |
H A D | cpufeature.h | 31 /* Per-cpu ISA extensions. */ 131 static __always_inline bool riscv_cpu_has_extension_likely(int cpu, const unsigned long ext) 136 return __riscv_isa_extension_available(hart_isa[cpu].isa, ext); 139 static __always_inline bool riscv_cpu_has_extension_unlikely(int cpu, const unsigned long ext) 144 return __riscv_isa_extension_available(hart_isa[cpu].isa, ext);
|
/linux-master/tools/testing/selftests/kvm/riscv/ |
H A D | arch_timer.c | 22 uint32_t cpu = guest_get_vcpuid(); local 23 struct test_vcpu_shared_data *shared_data = &vcpu_shared_data[cpu]; 69 uint32_t cpu = guest_get_vcpuid(); local 70 struct test_vcpu_shared_data *shared_data = &vcpu_shared_data[cpu];
|
/linux-master/include/linux/ |
H A D | part_stat.h | 28 #define part_stat_get_cpu(part, field, cpu) \ 29 (per_cpu_ptr((part)->bd_stats, (cpu))->field) 79 #define part_stat_local_read_cpu(part, field, cpu) \ 80 local_read(&(part_stat_get_cpu(part, field, cpu)))
|
H A D | dca.h | 36 int cpu); 55 u8 dca_get_tag(int cpu); 56 u8 dca3_get_tag(struct device *dev, int cpu);
|
/linux-master/arch/riscv/kernel/ |
H A D | sys_hwprobe.c | 24 int cpu; local 26 for_each_cpu(cpu, cpus) { 31 cpu_id = riscv_cached_mvendorid(cpu); 34 cpu_id = riscv_cached_mimpid(cpu); 37 cpu_id = riscv_cached_marchid(cpu); 62 int cpu; local 79 for_each_cpu(cpu, cpus) { 80 struct riscv_isainfo *isainfo = &hart_isa[cpu]; 154 int cpu; local 157 for_each_cpu(cpu, cpu 321 int cpu; local [all...] |
/linux-master/tools/perf/arch/arm64/util/ |
H A D | header.c | 20 struct perf_cpu cpu; local 26 perf_cpu_map__for_each_cpu(cpu, idx, cpus) { 30 scnprintf(path, PATH_MAX, "%s/devices/system/cpu/cpu%d" MIDR, 31 sysfs, cpu.cpu);
|
/linux-master/include/trace/events/ |
H A D | workqueue.h | 15 * @req_cpu: the requested cpu 35 __field( int, cpu ) 43 __entry->cpu = pwq->pool->cpu; 46 TP_printk("work struct=%p function=%ps workqueue=%s req_cpu=%d cpu=%d", 48 __entry->req_cpu, __entry->cpu)
|
/linux-master/kernel/rcu/ |
H A D | tree_exp.h | 234 int cpu; local 244 for_each_leaf_node_cpu_mask(rnp, cpu, mask) { 245 rdp = per_cpu_ptr(&rcu_data, cpu); 249 tick_dep_clear_cpu(cpu, TICK_DEP_BIT_RCU_EXP); 340 int cpu; local 351 for_each_leaf_node_cpu_mask(rnp, cpu, rnp->expmask) { 352 struct rcu_data *rdp = per_cpu_ptr(&rcu_data, cpu); 356 if (raw_smp_processor_id() == cpu || 360 snap = rcu_dynticks_snap(cpu); 379 for_each_leaf_node_cpu_mask(rnp, cpu, mask_ofl_ip [all...] |
/linux-master/drivers/cpufreq/ |
H A D | mediatek-cpufreq.c | 8 #include <linux/cpu.h> 66 static struct mtk_cpu_dvfs_info *mtk_cpu_dvfs_info_lookup(int cpu) argument 71 if (cpumask_test_cpu(cpu, &info->cpus)) 188 dev_err(info->cpu_dev, "cpu%d: sup_link is NULL\n", info->opp_cpu); 233 dev_err(cpu_dev, "cpu%d: failed to find OPP for %ld\n", 234 policy->cpu, freq_hz); 243 * of max(target cpu voltage, booting voltage) to prevent high freqeuncy 258 "cpu%d: failed to scale up voltage!\n", policy->cpu); 268 "cpu 385 mtk_cpu_dvfs_info_init(struct mtk_cpu_dvfs_info *info, int cpu) argument 629 int cpu, ret; local [all...] |
/linux-master/arch/x86/events/intel/ |
H A D | cstate.c | 315 int cpu; local 324 if (event->cpu < 0) 334 cpu = cpumask_any_and(&cstate_core_cpu_mask, 335 topology_sibling_cpumask(event->cpu)); 346 cpu = cpumask_any_and(&cstate_pkg_cpu_mask, 347 topology_die_cpumask(event->cpu)); 355 cpu = cpumask_any_and(&cstate_module_cpu_mask, 356 topology_cluster_cpumask(event->cpu)); 361 if (cpu >= nr_cpu_ids) 364 event->cpu 419 cstate_cpu_exit(unsigned int cpu) argument 458 cstate_cpu_init(unsigned int cpu) argument [all...] |
/linux-master/arch/powerpc/platforms/pseries/ |
H A D | lpar.c | 87 int cpu; local 91 for_each_possible_cpu(cpu) { 92 pp = paca_ptrs[cpu]; 97 pr_warn("Failed to allocate dispatch trace log for cpu %d\n", 98 cpu); 117 void register_dtl_buffer(int cpu) argument 122 int hwcpu = get_hard_smp_processor_id(cpu); 124 pp = paca_ptrs[cpu]; 129 lppaca_of(cpu).dtl_idx = 0; 135 pr_err("WARNING: DTL registration of cpu 145 int cpu; member in struct:dtl_worker 186 int cpu; local 229 __get_cpu_associativity(int cpu, __be32 *cpu_assoc, int flag) argument 244 get_pcpu_associativity(int cpu) argument 249 get_vcpu_associativity(int cpu) argument 408 dtl_worker_online(unsigned int cpu) argument 427 dtl_worker_offline(unsigned int cpu) argument 442 int cpu; local 451 int cpu; local 505 int rc, cmd, cpu; local 561 int cpu; local 661 pseries_paravirt_steal_clock(int cpu) argument 676 vpa_init(int cpu) argument 1997 int cpu = (long)filp->private_data; local [all...] |
/linux-master/arch/powerpc/platforms/cell/ |
H A D | interrupt.h | 20 * and node is always 0 (IPIs are per-cpu, their source is 79 extern void iic_message_pass(int cpu, int msg); 83 extern u8 iic_get_target_id(int cpu); 87 extern void iic_set_interrupt_routing(int cpu, int thread, int priority);
|
H A D | pervasive.c | 108 int cpu; local 113 for_each_possible_cpu(cpu) { 114 struct cbe_pmd_regs __iomem *regs = cbe_get_cpu_pmd_regs(cpu);
|
/linux-master/arch/csky/kernel/ |
H A D | cpu-probe.c | 48 int cpu; local 50 for_each_online_cpu(cpu) 51 smp_call_function_single(cpu, percpu_print, m, true);
|
/linux-master/arch/mips/include/asm/sn/ |
H A D | launch.h | 85 #define LAUNCH_SLAVE (*(void (*)(int nasid, int cpu, \ 92 #define LAUNCH_WAIT (*(void (*)(int nasid, int cpu, int timeout_msec)) \ 95 #define LAUNCH_POLL (*(launch_state_t (*)(int nasid, int cpu)) \
|
/linux-master/arch/openrisc/kernel/ |
H A D | sync-timer.c | 31 void synchronise_count_master(int cpu) argument 36 pr_info("Synchronize counters for CPU %u: ", cpu); 93 void synchronise_count_slave(int cpu) argument 98 * Not every cpu is online at the time this gets called,
|
/linux-master/arch/mips/kernel/ |
H A D | sync-r4k.c | 28 void synchronise_count_master(int cpu) argument 33 pr_info("Synchronize counters for CPU %u: ", cpu); 90 void synchronise_count_slave(int cpu) argument 98 * Not every cpu is online at the time this gets called,
|
H A D | mips-cpc.c | 74 unsigned int cpu; local 76 for_each_possible_cpu(cpu) 77 spin_lock_init(&per_cpu(cpc_core_lock, cpu));
|
/linux-master/arch/arm/mach-imx/ |
H A D | cpu.c | 29 void imx_print_silicon_rev(const char *cpu, int srev) argument 32 pr_info("CPU identified as %s, unknown revision\n", cpu); 35 cpu, (srev >> 4) & 0xf, srev & 0xf);
|
/linux-master/arch/arm/mach-mstar/ |
H A D | mstarv7.c | 74 static int mstarv7_boot_secondary(unsigned int cpu, struct task_struct *idle) argument 82 * cpu 1. 84 if (cpu != 1) 93 /* set the boot address for the second cpu */ 97 /* unlock the second cpu */ 101 arch_send_wakeup_ipi_mask(cpumask_of(cpu));
|
/linux-master/samples/bpf/ |
H A D | xdp_sample.bpf.c | 68 u32 cpu = bpf_get_smp_processor_id(); local 78 idx = key * nr_cpus + cpu; 131 u32 cpu = bpf_get_smp_processor_id(); local 138 idx = to_cpu * nr_cpus + cpu; 160 u32 cpu; local 165 cpu = bpf_get_smp_processor_id(); 166 rec = bpf_map_lookup_elem(&cpumap_kthread_cnt, &cpu); 184 u32 cpu = bpf_get_smp_processor_id(); local 196 idx = key * nr_cpus + cpu; 211 u32 cpu; local [all...] |
/linux-master/arch/arm/mach-tegra/ |
H A D | pm.c | 69 * restores cpu clock setting, clears flow controller 75 int cpu = smp_processor_id(); local 77 BUG_ON(cpu != 0); 80 cpu = cpu_logical_map(cpu); 86 flowctrl_cpu_suspend_exit(cpu); 95 * Must always be called on cpu 0. 99 int cpu = smp_processor_id(); local 101 BUG_ON(cpu != 0); 104 cpu 440 tegra_pm_park_secondary_cpu(unsigned long cpu) argument [all...] |
/linux-master/arch/arm/mach-spear/ |
H A D | platsmp.c | 41 static void spear13xx_secondary_init(unsigned int cpu) argument 56 static int spear13xx_boot_secondary(unsigned int cpu, struct task_struct *idle) argument 72 * "cpu" is Linux's internal ID. 74 spear_write_pen_release(cpu);
|
/linux-master/drivers/media/platform/verisilicon/ |
H A D | hantro_mpeg2.c | 43 ctx->mpeg2_dec.qtable.cpu = 48 if (!ctx->mpeg2_dec.qtable.cpu) 59 ctx->mpeg2_dec.qtable.cpu,
|
/linux-master/arch/arm/mach-ux500/ |
H A D | platsmp.c | 67 static int ux500_boot_secondary(unsigned int cpu, struct task_struct *idle) argument 82 arch_send_wakeup_ipi_mask(cpumask_of(cpu)); 87 static void ux500_cpu_die(unsigned int cpu) argument
|