Searched refs:cpu_samples (Results 1 – 2 of 2) sorted by relevance
35 static DEFINE_PER_CPU_SHARED_ALIGNED(struct aperfmperf, cpu_samples) = {36 .seq = SEQCNT_ZERO(cpu_samples.seq)46 this_cpu_write(cpu_samples.aperf, aperf); in init_counter_refs()47 this_cpu_write(cpu_samples.mperf, mperf); in init_counter_refs()471 struct aperfmperf *s = this_cpu_ptr(&cpu_samples); in arch_scale_freq_tick()503 struct aperfmperf *s = per_cpu_ptr(&cpu_samples, cpu); in arch_freq_get_on_cpu()
959 u32 *cpu_samples, *mchp_samples, old_cpu_power; in ips_monitor() local967 cpu_samples = kcalloc(IPS_SAMPLE_COUNT, sizeof(u32), GFP_KERNEL); in ips_monitor()970 !cpu_samples || !mchp_samples) { in ips_monitor()977 kfree(cpu_samples); in ips_monitor()1007 cpu_samples[i] = cpu_power; in ips_monitor()1023 ips->cpu_avg_power = calc_avg_power(ips, cpu_samples); in ips_monitor()1029 kfree(cpu_samples); in ips_monitor()