[PATCH V5 resend 39/63] SPEAr CPU freq: Adding support for CPU Freq framework
stanley.miao
stanley.miao at windriver.com
Tue Feb 15 04:06:08 EST 2011
Viresh Kumar wrote:
> From: Deepak Sikri <deepak.sikri at st.com>
>
> <snip>
> +
> + newfreq = clk_round_rate(cpu_clk, spear_cpu_freq[index] * 1000);
> + if (newfreq < 0) {
> + pr_err("CPU Freq: clk_round_rate failed: %ld\n", newfreq);
> + return newfreq;
> + }
>
clk_round_rate will call round_rate_index();
--------------------------
static int
round_rate_index(struct clk *clk, unsigned long drate, unsigned long *rate)
{
unsigned long tmp = 0, prev_rate = 0;
int index;
if (!clk->calc_rate)
return -EFAULT;
------------------------------------------
The cpu_clk don't have calc_rate, clk_round_rate always return fault.
Stanley.
More information about the linux-arm-kernel
mailing list