Home
last modified time | relevance | path

Searched refs:cpu_khz (Results 1 – 18 of 18) sorted by relevance

/linux-6.12.1/arch/x86/kernel/
Dtsc.c34 unsigned int __read_mostly cpu_khz; /* TSC clocks / usec, not used here */ variable
35 EXPORT_SYMBOL(cpu_khz);
937 unsigned long cpu_khz_old = cpu_khz; in recalibrate_cpu_khz()
942 cpu_khz = x86_platform.calibrate_cpu(); in recalibrate_cpu_khz()
945 tsc_khz = cpu_khz; in recalibrate_cpu_khz()
946 else if (abs(cpu_khz - tsc_khz) * 10 > tsc_khz) in recalibrate_cpu_khz()
947 cpu_khz = tsc_khz; in recalibrate_cpu_khz()
949 cpu_khz_old, cpu_khz); in recalibrate_cpu_khz()
1450 WARN_ON(cpu_khz || tsc_khz); in determine_cpu_tsc_frequencies()
1453 cpu_khz = x86_platform.calibrate_cpu(); in determine_cpu_tsc_frequencies()
[all …]
/linux-6.12.1/drivers/cpufreq/
Dsa1110-cpufreq.c143 sdram_calculate_timing(struct sdram_info *sd, u_int cpu_khz, in sdram_calculate_timing() argument
148 mem_khz = cpu_khz / 2; in sdram_calculate_timing()
213 sdram_update_refresh(u_int cpu_khz, struct sdram_params *sdram) in sdram_update_refresh() argument
216 u_int dri = ns_to_cycles(ns_row, cpu_khz / 2) / 32; in sdram_update_refresh()
Dlongrun.c199 *high_freq = (cpu_khz / 1000); in longrun_determine_freqs()
235 ebx = (((cpu_khz / 1000) * ecx) / 100); /* to MHz */ in longrun_determine_freqs()
Dcpufreq-nforce2.c324 if (!cpu_khz) { in nforce2_cpu_init()
329 fid = cpu_khz / (fsb * 100); in nforce2_cpu_init()
Dgx-suspmod.c408 else if (cpu_khz) in cpufreq_gx_cpu_init()
409 maxfreq = cpu_khz; in cpufreq_gx_cpu_init()
Dpowernow-k6.c163 khz = cpu_khz; in powernow_k6_cpu_init()
Dspeedstep-lib.c187 return cpu_khz; in pentium4_get_frequency()
De_powersaver.c284 fsb = cpu_khz / current_multiplier; in eps_cpu_init()
Dacpi-cpufreq.c504 if (cpu_khz) { in acpi_cpufreq_guess_freq()
513 if ((2 * cpu_khz) > (freqn + freq)) { in acpi_cpufreq_guess_freq()
Dpowernow-k7.c605 fsb = (10 * cpu_khz) / fid_codes[fidvidstatus.bits.CFID]; in powernow_cpu_init()
Dlonghaul.c409 int speed = cpu_khz / 1000; in guess_fsb()
Damd-pstate.c471 cpudata->freq = div64_u64((cpudata->cur.aperf * cpu_khz), cpudata->cur.mperf); in amd_pstate_sample()
Dintel_pstate.c2463 return mul_ext_fp(cpu->sample.core_avg_perf, cpu_khz); in get_avg_frequency()
/linux-6.12.1/arch/x86/kernel/apic/
Dhw_nmi.c29 return (u64)(cpu_khz) * 1000 * watchdog_thresh; in hw_nmi_get_sample_period()
Dapic.c754 if (!tsc_khz || !cpu_khz) in apic_needs_pit()
/linux-6.12.1/arch/x86/include/asm/
Dtsc.h17 extern unsigned int cpu_khz;
/linux-6.12.1/arch/x86/kernel/cpu/
Daperfmperf.c525 return div64_u64((cpu_khz * acnt), mcnt); in arch_freq_get_on_cpu()
529 return freq ? freq : cpu_khz; in arch_freq_get_on_cpu()
/linux-6.12.1/kernel/sched/
Ddebug.c944 unsigned int freq = cpu_khz ? : 1; in print_cpu()