Home
last modified time | relevance | path

Searched refs:old_freq (Results 1 – 10 of 10) sorted by relevance

/drivers/cpufreq/
Dat32ap-cpufreq.c31 unsigned int old_freq, new_freq; in at32_set_target() local
33 old_freq = policy->cur; in at32_set_target()
37 ref_freq = old_freq; in at32_set_target()
41 if (old_freq < new_freq) in at32_set_target()
45 if (new_freq < old_freq) in at32_set_target()
Domap-cpufreq.c50 unsigned int old_freq, new_freq; in omap_target() local
52 old_freq = policy->cur; in omap_target()
81 old_freq / 1000, volt_old ? volt_old / 1000 : -1, in omap_target()
85 if (mpu_reg && (new_freq > old_freq)) { in omap_target()
97 if (mpu_reg && (new_freq < old_freq)) { in omap_target()
102 clk_set_rate(policy->clk, old_freq * 1000); in omap_target()
Ds3c64xx-cpufreq.c60 unsigned int old_freq, new_freq; in s3c64xx_cpufreq_set_target() local
63 old_freq = clk_get_rate(policy->clk) / 1000; in s3c64xx_cpufreq_set_target()
68 if (vddarm && new_freq > old_freq) { in s3c64xx_cpufreq_set_target()
88 if (vddarm && new_freq < old_freq) { in s3c64xx_cpufreq_set_target()
95 if (clk_set_rate(policy->clk, old_freq * 1000) < 0) in s3c64xx_cpufreq_set_target()
Ddavinci-cpufreq.c45 unsigned int old_freq, new_freq; in davinci_target() local
48 old_freq = policy->cur; in davinci_target()
52 if (pdata->set_voltage && new_freq > old_freq) { in davinci_target()
69 if (pdata->set_voltage && new_freq < old_freq) in davinci_target()
Dblackfin-cpufreq.c137 unsigned int old_freq, new_freq; in bfin_target() local
144 old_freq = bfin_getfreq_khz(0); in bfin_target()
167 lpj_ref_freq = old_freq; in bfin_target()
169 if (new_freq != old_freq) { in bfin_target()
Dimx6q-cpufreq.c49 unsigned int old_freq, new_freq; in imx6q_set_target() local
54 old_freq = clk_get_rate(arm_clk) / 1000; in imx6q_set_target()
69 old_freq / 1000, volt_old / 1000, in imx6q_set_target()
73 if (new_freq > old_freq) { in imx6q_set_target()
113 clk_set_rate(arm_clk, (old_freq >> 1) * 1000); in imx6q_set_target()
139 if (new_freq < old_freq) { in imx6q_set_target()
Ds5pv210-cpufreq.c232 unsigned int old_freq, new_freq; in s5pv210_target() local
245 old_freq = policy->cur; in s5pv210_target()
249 priv_index = cpufreq_table_find_index_h(policy, old_freq); in s5pv210_target()
254 if (new_freq > old_freq) { in s5pv210_target()
476 if (new_freq < old_freq) { in s5pv210_target()
Dloongson1-cpufreq.c52 unsigned int old_freq, new_freq; in ls1x_cpufreq_target() local
54 old_freq = policy->cur; in ls1x_cpufreq_target()
73 dev_dbg(cpu_dev, "%u KHz --> %u KHz\n", old_freq, new_freq); in ls1x_cpufreq_target()
/drivers/devfreq/
Dexynos-bus.c102 unsigned long old_freq, new_freq, old_volt, new_volt, tol; in exynos_bus_target() local
116 old_freq = dev_pm_opp_get_freq(bus->curr_opp); in exynos_bus_target()
120 if (old_freq == new_freq) in exynos_bus_target()
127 if (old_freq < new_freq) { in exynos_bus_target()
138 clk_set_rate(bus->clk, old_freq); in exynos_bus_target()
142 if (old_freq > new_freq) { in exynos_bus_target()
152 old_freq/1000, new_freq/1000); in exynos_bus_target()
216 unsigned long old_freq, new_freq; in exynos_bus_passive_target() local
229 old_freq = dev_pm_opp_get_freq(bus->curr_opp); in exynos_bus_passive_target()
232 if (old_freq == new_freq) in exynos_bus_passive_target()
[all …]
/drivers/base/power/opp/
Dcore.c585 unsigned long freq, old_freq; in dev_pm_opp_set_rate() local
604 old_freq = clk_get_rate(clk); in dev_pm_opp_set_rate()
607 if (old_freq == freq) { in dev_pm_opp_set_rate()
622 old_opp = _find_freq_ceil(opp_table, &old_freq); in dev_pm_opp_set_rate()
625 __func__, old_freq, PTR_ERR(old_opp)); in dev_pm_opp_set_rate()
654 if (freq > old_freq) { in dev_pm_opp_set_rate()
664 __func__, old_freq, freq); in dev_pm_opp_set_rate()
674 if (freq < old_freq) { in dev_pm_opp_set_rate()
684 if (clk_set_rate(clk, old_freq)) in dev_pm_opp_set_rate()
686 __func__, old_freq); in dev_pm_opp_set_rate()