Lines Matching refs:sample

112 struct sample {  struct
245 struct sample sample; member
2477 cpu->last_update = cpu->sample.time; in intel_pstate_hwp_boost_up()
2486 expired = time_after64(cpu->sample.time, cpu->last_update + in intel_pstate_hwp_boost_down()
2493 cpu->last_update = cpu->sample.time; in intel_pstate_hwp_boost_down()
2499 cpu->sample.time = time; in intel_pstate_update_util_hwp_local()
2538 struct sample *sample = &cpu->sample; in intel_pstate_calc_avg_perf() local
2540 sample->core_avg_perf = div_ext_fp(sample->aperf, sample->mperf); in intel_pstate_calc_avg_perf()
2559 cpu->last_sample_time = cpu->sample.time; in intel_pstate_sample()
2560 cpu->sample.time = time; in intel_pstate_sample()
2561 cpu->sample.aperf = aperf; in intel_pstate_sample()
2562 cpu->sample.mperf = mperf; in intel_pstate_sample()
2563 cpu->sample.tsc = tsc; in intel_pstate_sample()
2564 cpu->sample.aperf -= cpu->prev_aperf; in intel_pstate_sample()
2565 cpu->sample.mperf -= cpu->prev_mperf; in intel_pstate_sample()
2566 cpu->sample.tsc -= cpu->prev_tsc; in intel_pstate_sample()
2587 return mul_ext_fp(cpu->sample.core_avg_perf, cpu_khz); in get_avg_frequency()
2593 cpu->sample.core_avg_perf); in get_avg_pstate()
2598 struct sample *sample = &cpu->sample; in get_target_pstate() local
2602 busy_frac = div_fp(sample->mperf << cpu->aperf_mperf_shift, in get_target_pstate()
2603 sample->tsc); in get_target_pstate()
2608 sample->busy_scaled = busy_frac * 100; in get_target_pstate()
2651 struct sample *sample; in intel_pstate_adjust_pstate() local
2659 sample = &cpu->sample; in intel_pstate_adjust_pstate()
2660 trace_pstate_sample(mul_ext_fp(100, sample->core_avg_perf), in intel_pstate_adjust_pstate()
2661 fp_toint(sample->busy_scaled), in intel_pstate_adjust_pstate()
2664 sample->mperf, in intel_pstate_adjust_pstate()
2665 sample->aperf, in intel_pstate_adjust_pstate()
2666 sample->tsc, in intel_pstate_adjust_pstate()
2701 delta_ns = time - cpu->sample.time; in intel_pstate_update_util()
2859 cpu->sample.time = 0; in intel_pstate_set_update_util_hook()
3189 struct sample *sample; in intel_cpufreq_trace() local
3197 sample = &cpu->sample; in intel_cpufreq_trace()
3202 sample->mperf, in intel_cpufreq_trace()
3203 sample->aperf, in intel_cpufreq_trace()
3204 sample->tsc, in intel_cpufreq_trace()