Home
last modified time | relevance | path

Searched refs:ratio (Results 1 – 17 of 17) sorted by relevance

/arch/x86/kernel/cpu/
Dsched.c16 unsigned long ratio, flags; in scale_aperfmperf() local
22 ratio = calc_aperfmperf_ratio(old, &val); in scale_aperfmperf()
25 return ratio; in scale_aperfmperf()
/arch/arm/mach-iop13xx/include/mach/
Dtime.h51 unsigned long ratio = __raw_readl(IOP13XX_PROCESSOR_FREQ); in iop13xx_xsi_bus_ratio() local
52 ratio &= IOP13XX_XSI_FREQ_RATIO_MASK; in iop13xx_xsi_bus_ratio()
53 switch (ratio) { in iop13xx_xsi_bus_ratio()
/arch/arm/mach-davinci/
Dclock.c286 unsigned ratio = 0; in davinci_set_sysclk_rate() local
319 ratio = DIV_ROUND_CLOSEST(input, rate); in davinci_set_sysclk_rate()
320 if (input / ratio > clk->maxrate) in davinci_set_sysclk_rate()
321 ratio = 0; in davinci_set_sysclk_rate()
324 if (ratio == 0) in davinci_set_sysclk_rate()
325 ratio = DIV_ROUND_UP(input, rate); in davinci_set_sysclk_rate()
327 ratio--; in davinci_set_sysclk_rate()
330 if (ratio > pll->div_ratio_mask) in davinci_set_sysclk_rate()
339 v |= ratio | PLLDIV_EN; in davinci_set_sysclk_rate()
/arch/arm/mach-prima2/
Dclock.c235 unsigned ratio, wait, hold, reg; in dmn_set_rate() local
239 ratio = fin / rate; in dmn_set_rate()
241 if (unlikely(ratio < 2 || ratio > BIT(bits + 1))) in dmn_set_rate()
246 wait = (ratio >> 1) - 1; in dmn_set_rate()
247 hold = ratio - wait - 2; in dmn_set_rate()
/arch/powerpc/platforms/powermac/
Dcpufreq_32.c513 const u32 *freqs, *ratio; in pmac_cpufreq_init_MacRISC3() local
521 ratio = of_get_property(cpunode, "processor-to-bus-ratio*2", in pmac_cpufreq_init_MacRISC3()
523 if (ratio == NULL) { in pmac_cpufreq_init_MacRISC3()
541 low_freq = (low_freq * (*ratio)) / 2000; in pmac_cpufreq_init_MacRISC3()
542 hi_freq = (hi_freq * (*ratio)) / 2000; in pmac_cpufreq_init_MacRISC3()
/arch/x86/platform/mrst/
Dmrst.c201 u32 lo, hi, ratio, fsb; in mrst_calibrate_tsc() local
205 ratio = (hi >> 8) & 0x1f; in mrst_calibrate_tsc()
206 pr_debug("ratio is %d\n", ratio); in mrst_calibrate_tsc()
207 if (!ratio) { in mrst_calibrate_tsc()
210 ratio = 16; in mrst_calibrate_tsc()
217 fast_calibrate = ratio * fsb; in mrst_calibrate_tsc()
/arch/ia64/kvm/
Dkvm_fw.c201 struct pal_freq_ratio *ratio; in sn2_patch_itc_freq_ratios() local
206 ratio = (struct pal_freq_ratio *)&result->v2; in sn2_patch_itc_freq_ratios()
210 ratio->num = 3; in sn2_patch_itc_freq_ratios()
211 ratio->den = factor; in sn2_patch_itc_freq_ratios()
/arch/x86/include/asm/
Dprocessor.h948 unsigned long ratio = aperf; in calc_aperfmperf_ratio() local
952 ratio = div64_u64(aperf, mperf); in calc_aperfmperf_ratio()
954 return ratio; in calc_aperfmperf_ratio()
/arch/ia64/include/asm/uv/
Duv_mmrs.h727 unsigned long ratio : 3; /* RW */ member
/arch/x86/kvm/
Dsvm.c203 static u64 __scale_tsc(u64 ratio, u64 tsc);
946 static u64 __scale_tsc(u64 ratio, u64 tsc) in __scale_tsc() argument
950 mult = ratio >> 32; in __scale_tsc()
951 frac = ratio & ((1ULL << 32) - 1); in __scale_tsc()
975 u64 ratio; in svm_set_tsc_khz() local
997 ratio = khz << 32; in svm_set_tsc_khz()
998 do_div(ratio, tsc_khz); in svm_set_tsc_khz()
1000 if (ratio == 0 || ratio & TSC_RATIO_RSVD) { in svm_set_tsc_khz()
1005 svm->tsc_ratio = ratio; in svm_set_tsc_khz()
/arch/m32r/platforms/m32700ut/
Ddot.gdbinit_400MHz_32MB22 # and switch off PLL, before resetting the clock gear ratio.
Ddot.gdbinit_200MHz_16MB22 # and switch off PLL, before resetting the clock gear ratio.
Ddot.gdbinit_300MHz_32MB22 # and switch off PLL, before resetting the clock gear ratio.
/arch/powerpc/boot/dts/
Dvirtex440-ml510.dts238 xlnx,bus2core-clk-ratio = <0x1>;
324 xlnx,sck-ratio = <0x80>;
Dvirtex440-ml507.dts267 xlnx,bus2core-clk-ratio = <1>;
/arch/microblaze/boot/dts/
Dsystem.dts231 xlnx,bus2core-clk-ratio = <0x1>;
/arch/microblaze/platform/generic/
Dsystem.dts231 xlnx,bus2core-clk-ratio = <0x1>;