/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | btf_type_tag_percpu.c | 56 __u32 cpu; local 58 cpu = bpf_get_smp_processor_id(); 59 rstat = (struct cgroup_rstat_cpu *)bpf_per_cpu_ptr(cgrp->rstat_cpu, cpu);
|
/linux-master/drivers/opp/ |
H A D | cpu.c | 13 #include <linux/cpu.h> 112 int cpu; local 116 for_each_cpu(cpu, cpumask) { 117 if (cpu == last_cpu) 120 cpu_dev = get_cpu_device(cpu); 122 pr_err("%s: failed to get cpu%d device\n", __func__, 123 cpu); 161 int cpu, ret = 0; local 167 for_each_cpu(cpu, cpumask) { 168 if (cpu [all...] |
H A D | Makefile | 3 obj-y += core.o cpu.o
|
/linux-master/drivers/cpufreq/ |
H A D | armada-8k-cpufreq.c | 14 #include <linux/cpu.h> 25 { .compatible = "marvell,ap806-cpu-clock" }, 26 { .compatible = "marvell,ap807-cpu-clock" }, 48 int cpu; local 50 for_each_possible_cpu(cpu) { 54 cpu_dev = get_cpu_device(cpu); 56 pr_warn("Failed to get cpu%d device\n", cpu); 62 pr_warn("Cannot get clock for CPU %d\n", cpu); 65 cpumask_set_cpu(cpu, cpumas 132 int ret = 0, opps_index = 0, cpu, nb_cpus; local [all...] |
/linux-master/arch/mips/include/asm/ |
H A D | timex.h | 16 #include <asm/cpu.h> 17 #include <asm/cpu-features.h> 19 #include <asm/cpu-type.h>
|
/linux-master/include/linux/ |
H A D | smp.h | 18 typedef bool (*smp_cond_func_t)(int cpu, void *info); 45 extern void __smp_call_single_queue(int cpu, struct llist_node *node); 56 int smp_call_function_single_async(int cpu, call_single_data_t *csd); 134 extern void arch_smp_send_reschedule(int cpu); 139 #define smp_send_reschedule(cpu) ({ \ 140 trace_ipi_send_cpu(cpu, _RET_IP_, NULL); \ 141 arch_smp_send_reschedule(cpu); \ 205 static inline void smp_send_reschedule(int cpu) { } argument 289 int smp_call_on_cpu(unsigned int cpu, int (*func)(void *), void *par, 293 int smpcfd_prepare_cpu(unsigned int cpu); [all...] |
/linux-master/tools/tracing/rtla/sample/ |
H A D | timerlat_load.py | 28 parser.add_argument("cpu", help='CPU to run timerlat thread') 34 affinity_mask = { int(args.cpu) } 36 print("Invalid cpu: " + args.cpu) 54 timerlat_path = "/sys/kernel/tracing/osnoise/per_cpu/cpu" + args.cpu + "/timerlat_fd"
|
/linux-master/kernel/time/ |
H A D | tick-sched.h | 105 extern struct tick_sched *tick_get_tick_sched(int cpu); 109 extern void tick_sched_timer_dying(int cpu); 111 static inline void tick_sched_timer_dying(int cpu) { } argument
|
H A D | tick-sched.c | 12 #include <linux/cpu.h> 42 struct tick_sched *tick_get_tick_sched(int cpu) argument 44 return &per_cpu(tick_cpu_sched, cpu); 208 int tick_cpu, cpu = smp_processor_id(); local 226 WRITE_ONCE(tick_do_timer_cpu, cpu); 227 tick_cpu = cpu; 231 if (tick_cpu == cpu) 366 static bool can_stop_full_tick(int cpu, struct tick_sched *ts) argument 370 if (unlikely(!cpu_online(cpu))) 414 void tick_nohz_full_kick_cpu(int cpu) argument 424 int cpu; local 468 int cpu; local 507 tick_nohz_dep_set_cpu(int cpu, enum tick_dep_bits bit) argument 530 tick_nohz_dep_clear_cpu(int cpu, enum tick_dep_bits bit) argument 609 tick_nohz_cpu_hotpluggable(unsigned int cpu) argument 621 tick_nohz_cpu_down(unsigned int cpu) argument 628 int cpu, ret; local 694 tick_nohz_tick_stopped_cpu(int cpu) argument 803 get_cpu_idle_time_us(int cpu, u64 *last_update_time) argument 829 get_cpu_iowait_time_us(int cpu, u64 *last_update_time) argument 893 tick_nohz_next_event(struct tick_sched *ts, int cpu) argument 971 tick_nohz_stop_tick(struct tick_sched *ts, int cpu) argument 1077 tick_nohz_full_stop_tick(struct tick_sched *ts, int cpu) argument 1109 int cpu = smp_processor_id(); local 1168 can_stop_idle_tick(int cpu, struct tick_sched *ts) argument 1207 int cpu = smp_processor_id(); local 1343 int cpu = smp_processor_id(); local 1381 tick_nohz_get_idle_calls_cpu(int cpu) argument 1619 tick_sched_timer_dying(int cpu) argument 1653 int cpu; local [all...] |
/linux-master/tools/testing/selftests/vDSO/ |
H A D | vdso_test_getcpu.c | 27 unsigned int cpu, node; local 45 ret = get_cpu(&cpu, &node, 0); 47 printf("Running on CPU %u node %u\n", cpu, node);
|
/linux-master/arch/alpha/kernel/ |
H A D | proto.h | 208 #define mcheck_expected(cpu) (cpu_data[cpu].mcheck_expected) 209 #define mcheck_taken(cpu) (cpu_data[cpu].mcheck_taken) 210 #define mcheck_extra(cpu) (cpu_data[cpu].mcheck_extra) 219 #define mcheck_expected(cpu) (*((void)(cpu), &__mcheck_info.expected)) 220 #define mcheck_taken(cpu) (*((void)(cpu), [all...] |
/linux-master/sound/soc/uniphier/ |
H A D | Makefile | 2 snd-soc-uniphier-aio-cpu-y := aio-core.o aio-dma.o aio-cpu.o aio-compress.o 6 obj-$(CONFIG_SND_SOC_UNIPHIER_AIO) += snd-soc-uniphier-aio-cpu.o
|
/linux-master/tools/perf/arch/arm/util/ |
H A D | cs-etm.c | 71 static bool cs_etm_is_ete(struct perf_pmu *cs_etm_pmu, struct perf_cpu cpu); 72 static int cs_etm_get_ro(struct perf_pmu *pmu, struct perf_cpu cpu, const char *path, __u64 *val); 73 static bool cs_etm_pmu_path_exists(struct perf_pmu *pmu, struct perf_cpu cpu, const char *path); 76 struct perf_cpu cpu) 78 if (cs_etm_is_ete(cs_etm_pmu, cpu)) 80 else if (cs_etm_pmu_path_exists(cs_etm_pmu, cpu, metadata_etmv4_ro[CS_ETMV4_TRCIDR0])) 82 else if (cs_etm_pmu_path_exists(cs_etm_pmu, cpu, metadata_etmv3_ro[CS_ETM_ETMCCER])) 89 struct perf_cpu cpu) 102 if (cs_etm_get_version(cs_etm_pmu, cpu) == CS_ETMV3) { 109 err = cs_etm_get_ro(cs_etm_pmu, cpu, metadata_etmv4_r 75 cs_etm_get_version(struct perf_pmu *cs_etm_pmu, struct perf_cpu cpu) argument 88 cs_etm_validate_context_id(struct perf_pmu *cs_etm_pmu, struct evsel *evsel, struct perf_cpu cpu) argument 148 cs_etm_validate_timestamp(struct perf_pmu *cs_etm_pmu, struct evsel *evsel, struct perf_cpu cpu) argument 204 struct perf_cpu cpu; local 545 struct perf_cpu cpu; local 574 cs_etm_get_ro(struct perf_pmu *pmu, struct perf_cpu cpu, const char *path, __u64 *val) argument 591 cs_etm_get_ro_signed(struct perf_pmu *pmu, struct perf_cpu cpu, const char *path, __u64 *out_val) argument 611 cs_etm_pmu_path_exists(struct perf_pmu *pmu, struct perf_cpu cpu, const char *path) argument 629 cs_etm_is_ete(struct perf_pmu *cs_etm_pmu, struct perf_cpu cpu) argument 644 cs_etm_get_legacy_trace_id(struct perf_cpu cpu) argument 649 cs_etm_save_etmv4_header(__u64 data[], struct auxtrace_record *itr, struct perf_cpu cpu) argument 682 cs_etm_save_ete_header(__u64 data[], struct auxtrace_record *itr, struct perf_cpu cpu) argument 713 cs_etm_get_metadata(struct perf_cpu cpu, u32 *offset, struct auxtrace_record *itr, struct perf_record_auxtrace_info *info) argument 788 struct perf_cpu cpu; local [all...] |
/linux-master/arch/sparc/include/asm/ |
H A D | smp_64.h | 40 void arch_send_call_function_single_ipi(int cpu); 48 #define raw_smp_processor_id() (current_thread_info()->cpu) 68 void __cpu_die(unsigned int cpu);
|
/linux-master/samples/bpf/ |
H A D | lathist_kern.c | 31 int cpu = bpf_get_smp_processor_id(); local 32 u64 *ts = bpf_map_lookup_elem(&my_map, &cpu); 75 int key, cpu; local 78 cpu = bpf_get_smp_processor_id(); 79 ts = bpf_map_lookup_elem(&my_map, &cpu); 89 key = cpu * MAX_ENTRIES + delta;
|
/linux-master/arch/arm/mach-imx/ |
H A D | common.h | 63 void imx_enable_cpu(int cpu, bool enable); 64 void imx_set_cpu_jump(int cpu, void *jump_addr); 65 u32 imx_get_cpu_arg(int cpu); 66 void imx_set_cpu_arg(int cpu, u32 arg); 92 void imx_cpu_die(unsigned int cpu); 93 int imx_cpu_kill(unsigned int cpu);
|
/linux-master/arch/powerpc/platforms/44x/ |
H A D | iss4xx.c | 80 static void smp_iss4xx_setup_cpu(int cpu) argument 85 static int smp_iss4xx_kick_cpu(int cpu) argument 87 struct device_node *cpunode = of_get_cpu_node(cpu, NULL); 98 spin_table_addr_prop = of_get_property(cpunode, "cpu-release-addr", 101 pr_err("CPU%d: Can't start, missing cpu-release-addr !\n", cpu); 109 pr_debug("CPU%d: Spin table mapped at %p\n", cpu, spin_table); 111 spin_table[3] = cpu;
|
/linux-master/include/trace/events/ |
H A D | ipi.h | 40 TP_PROTO(const unsigned int cpu, unsigned long callsite, void *callback), 42 TP_ARGS(cpu, callsite, callback), 45 __field(unsigned int, cpu) 51 __entry->cpu = cpu; 56 TP_printk("cpu=%u callsite=%pS callback=%pS", 57 __entry->cpu, __entry->callsite, __entry->callback)
|
H A D | cgroup.h | 209 TP_PROTO(struct cgroup *cgrp, int cpu, bool contended), 211 TP_ARGS(cgrp, cpu, contended), 217 __field( int, cpu ) 225 __entry->cpu = cpu; 229 TP_printk("root=%d id=%llu level=%d cpu=%d lock contended:%d", 231 __entry->cpu, __entry->contended) 237 TP_PROTO(struct cgroup *cgrp, int cpu, bool contended), 239 TP_ARGS(cgrp, cpu, contended) 244 TP_PROTO(struct cgroup *cgrp, int cpu, boo [all...] |
/linux-master/kernel/locking/ |
H A D | lock_events.c | 41 * These event counts are implemented as per-cpu variables which are 54 * Per-cpu counts 65 int cpu, id, len; local 76 for_each_possible_cpu(cpu) 77 sum += per_cpu(lockevents[id], cpu); 91 int cpu; local 99 for_each_possible_cpu(cpu) { 101 unsigned long *ptr = per_cpu_ptr(lockevents, cpu);
|
/linux-master/drivers/base/ |
H A D | arch_numa.c | 64 static void numa_update_cpu(unsigned int cpu, bool remove) argument 66 int nid = cpu_to_node(cpu); 72 cpumask_clear_cpu(cpu, node_to_cpumask_map[nid]); 74 cpumask_set_cpu(cpu, node_to_cpumask_map[nid]); 77 void numa_add_cpu(unsigned int cpu) argument 79 numa_update_cpu(cpu, false); 82 void numa_remove_cpu(unsigned int cpu) argument 84 numa_update_cpu(cpu, true); 87 void numa_clear_node(unsigned int cpu) argument 89 numa_remove_cpu(cpu); 121 numa_store_cpu_info(unsigned int cpu) argument 126 early_map_cpu_to_node(unsigned int cpu, int nid) argument 147 early_cpu_to_node(int cpu) argument 160 unsigned int cpu; local [all...] |
/linux-master/arch/s390/hypfs/ |
H A D | hypfs_diag0c.c | 11 #include <linux/cpu.h> 32 unsigned int cpu_count, cpu, i; local 48 for_each_online_cpu(cpu) { 49 diag0c_data->entry[i].cpu = cpu; 50 cpu_vec[cpu] = &diag0c_data->entry[i++];
|
/linux-master/tools/lib/perf/include/perf/ |
H A D | cpumap.h | 11 int cpu; member in struct:perf_cpu 27 * /sys/devices/system/cpu/online if 54 * cpu of -1 for an invalid index, this makes an empty map 81 LIBPERF_API bool perf_cpu_map__has(const struct perf_cpu_map *map, struct perf_cpu cpu); 89 #define perf_cpu_map__for_each_cpu(cpu, idx, cpus) \ 90 for ((idx) = 0, (cpu) = perf_cpu_map__cpu(cpus, idx); \ 92 (idx)++, (cpu) = perf_cpu_map__cpu(cpus, idx)) 98 if ((_cpu).cpu != -1)
|
/linux-master/drivers/perf/ |
H A D | arm_pmu.c | 34 void (*free_pmuirq)(unsigned int irq, int cpu, void __percpu *devid); 37 static void armpmu_free_pmuirq(unsigned int irq, int cpu, void __percpu *devid) argument 39 free_irq(irq, per_cpu_ptr(devid, cpu)); 48 static void armpmu_free_pmunmi(unsigned int irq, int cpu, void __percpu *devid) argument 50 free_nmi(irq, per_cpu_ptr(devid, cpu)); 64 static void armpmu_free_percpu_pmuirq(unsigned int irq, int cpu, argument 89 static void armpmu_free_percpu_pmunmi(unsigned int irq, int cpu, argument 506 * event->cpu == -1) can be migrated between CPUs, and thus we have to 510 if (event->cpu != -1 && 511 !cpumask_test_cpu(event->cpu, 551 armpmu_filter(struct pmu *pmu, int cpu) argument 577 int cpu, count = 0; local 590 int cpu; local 604 armpmu_free_irq(int irq, int cpu) argument 617 armpmu_request_irq(int irq, int cpu) argument 685 armpmu_get_cpu_irq(struct arm_pmu *pmu, int cpu) argument 702 arm_perf_starting_cpu(unsigned int cpu, struct hlist_node *node) argument 721 arm_perf_teardown_cpu(unsigned int cpu, struct hlist_node *node) argument 854 int cpu; local [all...] |
/linux-master/drivers/macintosh/ |
H A D | windfarm_pm72.c | 208 static int read_one_cpu_vals(int cpu, s32 *temp, s32 *power) argument 214 rc = wf_sensor_get(sens_cpu_temp[cpu], &dtemp); 216 DBG(" CPU%d: temp reading error !\n", cpu); 219 DBG_LOTS(" CPU%d: temp = %d.%03d\n", cpu, FIX32TOPRINT((dtemp))); 223 rc = wf_sensor_get(sens_cpu_volts[cpu], &volts); 225 DBG(" CPU%d, volts reading error !\n", cpu); 228 DBG_LOTS(" CPU%d: volts = %d.%03d\n", cpu, FIX32TOPRINT((volts))); 231 rc = wf_sensor_get(sens_cpu_amps[cpu], &s); 233 DBG(" CPU%d, current reading error !\n", cpu); 236 DBG_LOTS(" CPU%d: amps = %d.%03d\n", cpu, FIX32TOPRIN 253 int err, cpu; local 313 int err, cpu; local 392 cpu_setup_pid(int cpu) argument 793 struct device_node *cpu; local [all...] |