Searched refs:cpu_khz (Results 1 - 17 of 17) sorted by relevance

/linux-4.4.14/arch/x86/include/asm/
H A Dtsc.h17 extern unsigned int cpu_khz;
/linux-4.4.14/arch/x86/kernel/apic/
H A Dhw_nmi.c26 return (u64)(cpu_khz) * 1000 * watchdog_thresh; hw_nmi_get_sample_period()
H A Dapic.c1220 long long max_loops = cpu_khz ? cpu_khz : 1000000; setup_local_APIC()
1306 if (cpu_has_tsc && cpu_khz) { setup_local_APIC()
1308 max_loops = (cpu_khz << 10) - (ntsc - tsc); setup_local_APIC()
/linux-4.4.14/drivers/cpufreq/
H A Dsa1110-cpufreq.c146 sdram_calculate_timing(struct sdram_info *sd, u_int cpu_khz, sdram_calculate_timing() argument
151 mem_khz = cpu_khz / 2; sdram_calculate_timing()
216 sdram_update_refresh(u_int cpu_khz, struct sdram_params *sdram) sdram_update_refresh() argument
219 u_int dri = ns_to_cycles(ns_row, cpu_khz / 2) / 32; sdram_update_refresh()
H A Dcpufreq-nforce2.c327 if (!cpu_khz) { nforce2_cpu_init()
329 "cpu_khz not set, can't calculate multiplier!\n"); nforce2_cpu_init()
333 fid = cpu_khz / (fsb * 100); nforce2_cpu_init()
H A Dgx-suspmod.c57 * - fix cpu_khz calc when it stops cpu modulation.
127 /* PCI bus clock - defaults to 30.000 if cpu_khz is not available */
412 else if (cpu_khz) cpufreq_gx_cpu_init()
413 maxfreq = cpu_khz; cpufreq_gx_cpu_init()
H A Dlongrun.c204 *high_freq = (cpu_khz / 1000); longrun_determine_freqs()
240 ebx = (((cpu_khz / 1000) * ecx) / 100); /* to MHz */ longrun_determine_freqs()
H A Dacpi-cpufreq.c498 if (cpu_khz) { acpi_cpufreq_guess_freq()
499 /* search the closest match to cpu_khz */ acpi_cpufreq_guess_freq()
507 if ((2 * cpu_khz) > (freqn + freq)) { acpi_cpufreq_guess_freq()
H A Dpowernow-k6.c163 khz = cpu_khz; powernow_k6_cpu_init()
H A De_powersaver.c294 fsb = cpu_khz / current_multiplier; eps_cpu_init()
H A Dspeedstep-lib.c186 return cpu_khz; pentium4_get_frequency()
H A Dpowernow-k7.c617 fsb = (10 * cpu_khz) / fid_codes[fidvidstatus.bits.CFID]; powernow_cpu_init()
H A Dlonghaul.c411 int speed = cpu_khz / 1000; guess_fsb()
/linux-4.4.14/arch/x86/kernel/
H A Dtsc.c26 unsigned int __read_mostly cpu_khz; /* TSC clocks / usec, not used here */ variable
27 EXPORT_SYMBOL(cpu_khz); variable
163 * ns = cycles * (10^9 / (cpu_khz * 10^3))
164 * ns = cycles * (10^6 / cpu_khz)
167 * ns = cycles * (10^6 * SC / cpu_khz) / SC
237 static void set_cyc2ns_scale(unsigned long cpu_khz, int cpu) set_cyc2ns_scale() argument
246 if (!cpu_khz) set_cyc2ns_scale()
259 clocks_calc_mult_shift(&data->cyc2ns_mul, &data->cyc2ns_shift, cpu_khz, set_cyc2ns_scale()
830 unsigned long cpu_khz_old = cpu_khz; recalibrate_cpu_khz()
834 cpu_khz = tsc_khz; recalibrate_cpu_khz()
837 cpu_khz_old, cpu_khz); recalibrate_cpu_khz()
1196 cpu_khz = tsc_khz; tsc_init()
1205 (unsigned long)cpu_khz / 1000, tsc_init()
1206 (unsigned long)cpu_khz % 1000); tsc_init()
1216 set_cyc2ns_scale(cpu_khz, cpu); for_each_possible_cpu()
/linux-4.4.14/drivers/oprofile/
H A Dnmi_timer_int.c131 period = (u64)cpu_khz * 1000; nmi_timer_setup()
/linux-4.4.14/arch/x86/kernel/cpu/
H A Dproc.c84 freq = cpu_khz; show_cpuinfo()
/linux-4.4.14/kernel/sched/
H A Ddebug.c274 unsigned int freq = cpu_khz ? : 1; print_cpu()

Completed in 474 milliseconds