Lines Matching refs:freq
978 struct cpufreq_freqs *freq = data; in time_cpufreq_notifier() local
986 ref_freq = freq->old; in time_cpufreq_notifier()
991 if ((val == CPUFREQ_PRECHANGE && freq->old < freq->new) || in time_cpufreq_notifier()
992 (val == CPUFREQ_POSTCHANGE && freq->old > freq->new)) { in time_cpufreq_notifier()
994 cpufreq_scale(loops_per_jiffy_ref, ref_freq, freq->new); in time_cpufreq_notifier()
996 tsc_khz = cpufreq_scale(tsc_khz_ref, ref_freq, freq->new); in time_cpufreq_notifier()
997 if (!(freq->flags & CPUFREQ_CONST_LOOPS)) in time_cpufreq_notifier()
1000 set_cyc2ns_scale(tsc_khz, freq->policy->cpu, rdtsc()); in time_cpufreq_notifier()
1318 unsigned long freq; in tsc_refine_calibration_work() local
1355 freq = calc_hpet_ref(delta, ref_start, ref_stop); in tsc_refine_calibration_work()
1357 freq = calc_pmtimer_ref(delta, ref_start, ref_stop); in tsc_refine_calibration_work()
1360 if (abs(tsc_khz - freq) > tsc_khz/100) in tsc_refine_calibration_work()
1363 tsc_khz = freq; in tsc_refine_calibration_work()