Lines Matching refs:sample
67 struct sample { struct
112 struct sample sample; member
742 struct sample *sample = &cpu->sample; in intel_pstate_calc_busy() local
745 core_pct = int_tofp(sample->aperf) * int_tofp(100); in intel_pstate_calc_busy()
746 core_pct = div64_u64(core_pct, int_tofp(sample->mperf)); in intel_pstate_calc_busy()
748 sample->freq = fp_toint( in intel_pstate_calc_busy()
753 sample->core_pct_busy = (int32_t)core_pct; in intel_pstate_calc_busy()
771 cpu->last_sample_time = cpu->sample.time; in intel_pstate_sample()
772 cpu->sample.time = ktime_get(); in intel_pstate_sample()
773 cpu->sample.aperf = aperf; in intel_pstate_sample()
774 cpu->sample.mperf = mperf; in intel_pstate_sample()
775 cpu->sample.aperf -= cpu->prev_aperf; in intel_pstate_sample()
776 cpu->sample.mperf -= cpu->prev_mperf; in intel_pstate_sample()
817 core_busy = cpu->sample.core_pct_busy; in intel_pstate_get_scaled_busy()
830 duration_us = ktime_us_delta(cpu->sample.time, in intel_pstate_get_scaled_busy()
867 struct sample *sample; in intel_pstate_timer_func() local
871 sample = &cpu->sample; in intel_pstate_timer_func()
875 trace_pstate_sample(fp_toint(sample->core_pct_busy), in intel_pstate_timer_func()
878 sample->mperf, in intel_pstate_timer_func()
879 sample->aperf, in intel_pstate_timer_func()
880 sample->freq); in intel_pstate_timer_func()
951 struct sample *sample; in intel_pstate_get() local
957 sample = &cpu->sample; in intel_pstate_get()
958 return sample->freq; in intel_pstate_get()