Lines Matching refs:freq
917 struct cpufreq_freqs *freq = data; in time_cpufreq_notifier() local
920 if (cpu_has(&cpu_data(freq->cpu), X86_FEATURE_CONSTANT_TSC)) in time_cpufreq_notifier()
925 if (!(freq->flags & CPUFREQ_CONST_LOOPS)) in time_cpufreq_notifier()
926 lpj = &cpu_data(freq->cpu).loops_per_jiffy; in time_cpufreq_notifier()
930 ref_freq = freq->old; in time_cpufreq_notifier()
934 if ((val == CPUFREQ_PRECHANGE && freq->old < freq->new) || in time_cpufreq_notifier()
935 (val == CPUFREQ_POSTCHANGE && freq->old > freq->new)) { in time_cpufreq_notifier()
936 *lpj = cpufreq_scale(loops_per_jiffy_ref, ref_freq, freq->new); in time_cpufreq_notifier()
938 tsc_khz = cpufreq_scale(tsc_khz_ref, ref_freq, freq->new); in time_cpufreq_notifier()
939 if (!(freq->flags & CPUFREQ_CONST_LOOPS)) in time_cpufreq_notifier()
942 set_cyc2ns_scale(tsc_khz, freq->cpu); in time_cpufreq_notifier()
1096 unsigned long freq; in tsc_refine_calibration_work() local
1131 freq = calc_hpet_ref(delta, ref_start, ref_stop); in tsc_refine_calibration_work()
1133 freq = calc_pmtimer_ref(delta, ref_start, ref_stop); in tsc_refine_calibration_work()
1136 if (abs(tsc_khz - freq) > tsc_khz/100) in tsc_refine_calibration_work()
1139 tsc_khz = freq; in tsc_refine_calibration_work()