diff options
-rw-r--r-- | arch/arm/mach-omap2/clock2xxx.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/clock2xxx.c b/arch/arm/mach-omap2/clock2xxx.c index d0e3fb7f9298..ce6742f7894a 100644 --- a/arch/arm/mach-omap2/clock2xxx.c +++ b/arch/arm/mach-omap2/clock2xxx.c | |||
@@ -455,12 +455,15 @@ static struct cpufreq_frequency_table freq_table[ARRAY_SIZE(rate_table)]; | |||
455 | void omap2_clk_init_cpufreq_table(struct cpufreq_frequency_table **table) | 455 | void omap2_clk_init_cpufreq_table(struct cpufreq_frequency_table **table) |
456 | { | 456 | { |
457 | struct prcm_config *prcm; | 457 | struct prcm_config *prcm; |
458 | long sys_ck_rate; | ||
458 | int i = 0; | 459 | int i = 0; |
459 | 460 | ||
461 | sys_ck_rate = clk_get_rate(sclk); | ||
462 | |||
460 | for (prcm = rate_table; prcm->mpu_speed; prcm++) { | 463 | for (prcm = rate_table; prcm->mpu_speed; prcm++) { |
461 | if (!(prcm->flags & cpu_mask)) | 464 | if (!(prcm->flags & cpu_mask)) |
462 | continue; | 465 | continue; |
463 | if (prcm->xtal_speed != sys_ck.rate) | 466 | if (prcm->xtal_speed != sys_ck_rate) |
464 | continue; | 467 | continue; |
465 | 468 | ||
466 | /* don't put bypass rates in table */ | 469 | /* don't put bypass rates in table */ |