Lines Matching refs:policy
51 static int s3c64xx_cpufreq_set_target(struct cpufreq_policy *policy,
58 old_freq = clk_get_rate(policy->clk) / 1000;
75 ret = clk_set_rate(policy->clk, new_freq * 1000);
90 if (clk_set_rate(policy->clk, old_freq * 1000) < 0)
99 clk_get_rate(policy->clk) / 1000);
143 static int s3c64xx_cpufreq_driver_init(struct cpufreq_policy *policy)
147 if (policy->cpu != 0)
150 policy->clk = clk_get(NULL, "armclk");
151 if (IS_ERR(policy->clk)) {
153 PTR_ERR(policy->clk));
154 return PTR_ERR(policy->clk);
172 r = clk_round_rate(policy->clk, freq->frequency * 1000);
182 if (!vddarm && freq->frequency > clk_get_rate(policy->clk) / 1000)
190 cpufreq_generic_init(policy, s3c64xx_freq_table,