summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-omap2/omap2plus-cpufreq.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/omap2plus-cpufreq.c b/arch/arm/mach-omap2/omap2plus-cpufreq.c
index 8c903c18e9b..e982e13f2af 100644
--- a/arch/arm/mach-omap2/omap2plus-cpufreq.c
+++ b/arch/arm/mach-omap2/omap2plus-cpufreq.c
@@ -37,6 +37,7 @@
#include <plat/common.h>
#include <mach/hardware.h>
+#include <plat/dvfs.h>
#define VERY_HI_RATE 900000000
@@ -78,6 +79,7 @@ static int omap_target(struct cpufreq_policy *policy,
{
int i, ret = 0;
struct cpufreq_freqs freqs;
+ struct device *mpu_dev = omap2_get_mpuss_device();
/* Wait untill all CPU's are initialized */
if (is_smp() && (num_online_cpus() < NR_CPUS))
@@ -113,7 +115,7 @@ set_freq:
pr_info("cpufreq-omap: transition: %u --> %u\n", freqs.old, freqs.new);
#endif
- ret = clk_set_rate(mpu_clk, freqs.new * 1000);
+ ret = omap_device_scale(mpu_dev, mpu_dev, freqs.new * 1000);
if (ret)
return ret;
freqs.new = omap_getspeed(policy->cpu);