Searched refs:khz (Results 1 – 6 of 6) sorted by relevance
/arch/x86/kernel/cpu/ |
D | aperfmperf.c | 21 unsigned int khz; member 64 s->khz = div64_u64((cpu_khz * aperf_delta), mperf_delta); in aperfmperf_snapshot_khz() 93 return per_cpu(samples.khz, cpu); in aperfmperf_get_khz() 131 return per_cpu(samples.khz, cpu); in arch_freq_get_on_cpu() 136 return per_cpu(samples.khz, cpu); in arch_freq_get_on_cpu()
|
/arch/x86/kernel/ |
D | apb_timer.c | 355 unsigned long khz = 0; in apbt_quick_calibrate() local 395 khz = (scale * (apbt_freq / 1000)) >> shift; in apbt_quick_calibrate() 396 printk(KERN_INFO "TSC freq calculated by APB timer is %lu khz\n", khz); in apbt_quick_calibrate() 397 return khz; in apbt_quick_calibrate()
|
D | kvmclock.c | 136 unsigned long khz; in kvm_get_preset_lpj() local 139 khz = kvm_get_tsc_khz(); in kvm_get_preset_lpj() 141 lpj = ((u64)khz * 1000); in kvm_get_preset_lpj()
|
D | tsc.c | 123 static void __set_cyc2ns_scale(unsigned long khz, int cpu, unsigned long long tsc_now) in __set_cyc2ns_scale() argument 136 clocks_calc_mult_shift(&data.cyc2ns_mul, &data.cyc2ns_shift, khz, in __set_cyc2ns_scale() 161 static void set_cyc2ns_scale(unsigned long khz, int cpu, unsigned long long tsc_now) in set_cyc2ns_scale() argument 168 if (khz) in set_cyc2ns_scale() 169 __set_cyc2ns_scale(khz, cpu, tsc_now); in set_cyc2ns_scale()
|
/arch/arm/mach-pxa/ |
D | viper.c | 164 static void viper_set_core_cpu_voltage(unsigned long khz, int force) in viper_set_core_cpu_voltage() argument 170 if (khz < 200000) { in viper_set_core_cpu_voltage() 172 } else if (khz < 300000) { in viper_set_core_cpu_voltage() 179 v, (int)khz / 1000, (int)khz % 1000); in viper_set_core_cpu_voltage()
|
/arch/x86/kvm/ |
D | x86.c | 1696 static u32 adjust_tsc_khz(u32 khz, s32 ppm) in adjust_tsc_khz() argument 1698 u64 v = (u64)khz * (1000000 + ppm); in adjust_tsc_khz() 6914 unsigned long khz = 0; in tsc_khz_changed() local 6917 khz = freq->new; in tsc_khz_changed() 6919 khz = cpufreq_quick_get(raw_smp_processor_id()); in tsc_khz_changed() 6920 if (!khz) in tsc_khz_changed() 6921 khz = tsc_khz; in tsc_khz_changed() 6922 __this_cpu_write(cpu_tsc_khz, khz); in tsc_khz_changed()
|