Lines Matching +full:10 +full:khz

40 #define KHZ	1000  macro
105 * ns = cycles * (10^9 / (cpu_khz * 10^3))
106 * ns = cycles * (10^6 / cpu_khz)
109 * ns = cycles * (10^6 * SC / cpu_khz) / SC
117 * We can use khz divisor instead of mhz to keep a better precision.
145 static void __set_cyc2ns_scale(unsigned long khz, int cpu, unsigned long long tsc_now) in __set_cyc2ns_scale() argument
158 clocks_calc_mult_shift(&data.cyc2ns_mul, &data.cyc2ns_shift, khz, in __set_cyc2ns_scale()
183 static void set_cyc2ns_scale(unsigned long khz, int cpu, unsigned long long tsc_now) in set_cyc2ns_scale() argument
190 if (khz) in set_cyc2ns_scale()
191 __set_cyc2ns_scale(khz, cpu, tsc_now); in set_cyc2ns_scale()
410 #define CAL_MS 10
422 * in kHz.
438 udelay(10 * USEC_PER_MSEC); in pit_calibrate_tsc()
439 udelay(10 * USEC_PER_MSEC); in pit_calibrate_tsc()
440 udelay(10 * USEC_PER_MSEC); in pit_calibrate_tsc()
441 udelay(10 * USEC_PER_MSEC); in pit_calibrate_tsc()
442 udelay(10 * USEC_PER_MSEC); in pit_calibrate_tsc()
480 * If the maximum is 10 times larger than the minimum, in pit_calibrate_tsc()
483 if (pitcnt < loopmin || tscmax > 10 * tscmin) in pit_calibrate_tsc()
502 * but we allow it to be much faster (by a factor of 10) or
645 * kHz = ticks / time-in-seconds / 1000; in quick_pit_calibrate()
646 * kHz = (t2 - t1) / (I * 256 / PIT_TICK_RATE) / 1000 in quick_pit_calibrate()
647 * kHz = ((t2 - t1) * PIT_TICK_RATE) / (I * 256 * 1000) in quick_pit_calibrate()
830 * If both calibration results are inside a 10% window in pit_hpet_ptimer_calibrate_cpu()
946 else if (abs(cpu_khz - tsc_khz) * 10 > tsc_khz) in recalibrate_cpu_khz()
1096 art_base_clk.freq_khz /= KHZ; in detect_art()
1473 else if (abs(cpu_khz - tsc_khz) * 10 > tsc_khz) in determine_cpu_tsc_frequencies()
1480 (unsigned long)cpu_khz / KHZ, in determine_cpu_tsc_frequencies()
1481 (unsigned long)cpu_khz % KHZ); in determine_cpu_tsc_frequencies()
1485 (unsigned long)tsc_khz / KHZ, in determine_cpu_tsc_frequencies()
1486 (unsigned long)tsc_khz % KHZ); in determine_cpu_tsc_frequencies()
1493 u64 lpj = (u64)tsc_khz * KHZ; in get_loops_per_jiffy()
1539 mark_tsc_unstable("could not calculate TSC khz"); in tsc_init()