Lines Matching refs:freq
899 struct cpufreq_freqs *freq = data; in time_cpufreq_notifier() local
902 if (cpu_has(&cpu_data(freq->cpu), X86_FEATURE_CONSTANT_TSC)) in time_cpufreq_notifier()
907 if (!(freq->flags & CPUFREQ_CONST_LOOPS)) in time_cpufreq_notifier()
908 lpj = &cpu_data(freq->cpu).loops_per_jiffy; in time_cpufreq_notifier()
912 ref_freq = freq->old; in time_cpufreq_notifier()
916 if ((val == CPUFREQ_PRECHANGE && freq->old < freq->new) || in time_cpufreq_notifier()
917 (val == CPUFREQ_POSTCHANGE && freq->old > freq->new)) { in time_cpufreq_notifier()
918 *lpj = cpufreq_scale(loops_per_jiffy_ref, ref_freq, freq->new); in time_cpufreq_notifier()
920 tsc_khz = cpufreq_scale(tsc_khz_ref, ref_freq, freq->new); in time_cpufreq_notifier()
921 if (!(freq->flags & CPUFREQ_CONST_LOOPS)) in time_cpufreq_notifier()
924 set_cyc2ns_scale(tsc_khz, freq->cpu); in time_cpufreq_notifier()
1078 unsigned long freq; in tsc_refine_calibration_work() local
1113 freq = calc_hpet_ref(delta, ref_start, ref_stop); in tsc_refine_calibration_work()
1115 freq = calc_pmtimer_ref(delta, ref_start, ref_stop); in tsc_refine_calibration_work()
1118 if (abs(tsc_khz - freq) > tsc_khz/100) in tsc_refine_calibration_work()
1121 tsc_khz = freq; in tsc_refine_calibration_work()