Home
last modified time | relevance | path

Searched refs:cpu_samples (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/arch/x86/kernel/cpu/
H A Daperfmperf.c35 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()
384 struct aperfmperf *s = this_cpu_ptr(&cpu_samples); in arch_scale_freq_tick()
416 struct aperfmperf *s = per_cpu_ptr(&cpu_samples, cpu); in arch_freq_get_on_cpu()
/openbmc/linux/drivers/platform/x86/
H A Dintel_ips.c949 u32 *cpu_samples, *mchp_samples, old_cpu_power; in ips_monitor() local
957 cpu_samples = kcalloc(IPS_SAMPLE_COUNT, sizeof(u32), GFP_KERNEL); in ips_monitor()
960 !cpu_samples || !mchp_samples) { in ips_monitor()
967 kfree(cpu_samples); in ips_monitor()
997 cpu_samples[i] = cpu_power; in ips_monitor()
1013 ips->cpu_avg_power = calc_avg_power(ips, cpu_samples); in ips_monitor()
1019 kfree(cpu_samples); in ips_monitor()