Lines Matching defs:cycles
89 static void rtc_set_timescale(uint64_t cycles);
90 static uint64_t rtc_export_speed(uint64_t cycles);
161 * The timestamp counter (TSC) - which counts cpu clock cycles and can be read
314 uint64_t cycles;
326 cycles = rtc_export_speed(tscFreq);
332 gPEClockFrequencyInfo.cpu_frequency_min_hz = cycles;
333 gPEClockFrequencyInfo.cpu_frequency_max_hz = cycles;
356 // Code to calculate how many processor cycles are in a second...
359 rtc_set_timescale(uint64_t cycles)
362 rntp->scale = ((uint64_t)NSEC_PER_SEC << 32) / cycles;
364 if (cycles <= SLOW_TSC_THRESHOLD)
365 rntp->shift = cycles;
375 uint64_t cycles;
378 cycles = ((cyc_per_sec + (UI_CPUFREQ_ROUNDING_FACTOR/2))
385 if (cycles >= 0x100000000ULL) {
388 gPEClockFrequencyInfo.cpu_clock_rate_hz = (unsigned long)cycles;
390 gPEClockFrequencyInfo.cpu_frequency_hz = cycles;
392 kprintf("[RTCLOCK] frequency %llu (%llu)\n", cycles, cyc_per_sec);
393 return(cycles);