RE: [RFC 7/7] OMAP3: Update cpufreq driver to use the new set_rate API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




>>-----Original Message-----
>>From: Pandita, Vikram
>>Sent: Thursday, July 08, 2010 8:40 AM
>>To: Gopinath, Thara; linux-omap@xxxxxxxxxxxxxxx
>>Cc: khilman@xxxxxxxxxxxxxxxxxxx; paul@xxxxxxxxx; Cousson, Benoit; Sripathy, Vishwanath; Sawant,
>>Anand; Basak, Partha
>>Subject: RE: [RFC 7/7] OMAP3: Update cpufreq driver to use the new set_rate API
>>
>>
>>
>>>-----Original Message-----
>>>From: linux-omap-owner@xxxxxxxxxxxxxxx [mailto:linux-omap-
>>>owner@xxxxxxxxxxxxxxx] On Behalf Of Gopinath, Thara
>>>Sent: Friday, July 02, 2010 5:18 AM
>>>To: linux-omap@xxxxxxxxxxxxxxx
>>>Cc: khilman@xxxxxxxxxxxxxxxxxxx; paul@xxxxxxxxx; Cousson, Benoit; Sripathy,
>>>Vishwanath; Sawant, Anand; Basak, Partha; Gopinath, Thara
>>>Subject: [RFC 7/7] OMAP3: Update cpufreq driver to use the new set_rate API
>>>
>>>This patch updates the cpufreq driver to use the device
>>>set rate API to scale the mpu frequency for OMAP3.
>>>
>>>Signed-off-by: Thara Gopinath <thara@xxxxxx>
>>>---
>>> arch/arm/plat-omap/cpu-omap.c |    5 +++--
>>> 1 files changed, 3 insertions(+), 2 deletions(-)
>>>
>>>diff --git a/arch/arm/plat-omap/cpu-omap.c b/arch/arm/plat-omap/cpu-omap.c
>>>index 9467827..cde02b5 100644
>>>--- a/arch/arm/plat-omap/cpu-omap.c
>>>+++ b/arch/arm/plat-omap/cpu-omap.c
>>>@@ -29,6 +29,7 @@
>>> #include <mach/hardware.h>
>>> #include <plat/clock.h>
>>> #include <asm/system.h>
>>>+#include <plat/omap_device.h>
>>>
>>> #if defined(CONFIG_ARCH_OMAP3) && !defined(CONFIG_OMAP_PM_NONE)
>>> #include <plat/omap-pm.h>
>>>@@ -84,7 +85,7 @@ static int omap_target(struct cpufreq_policy *policy,
>>> 		       unsigned int target_freq,
>>> 		       unsigned int relation)
>>> {
>>>-#ifdef CONFIG_ARCH_OMAP1
>>>+#ifdef CONFIG_ARiCH_OMAP1
>>                ^^^^^^
>>		Typo I guess. Needs correction.

Yep.. Thanks..

Regards
Thara
>>
>>
>>> 	struct cpufreq_freqs freqs;
>>> #endif
>>> #if defined(CONFIG_ARCH_OMAP3) && !defined(CONFIG_OMAP_PM_NONE)
>>>@@ -117,7 +118,7 @@ static int omap_target(struct cpufreq_policy *policy,
>>> #elif defined(CONFIG_ARCH_OMAP3) && !defined(CONFIG_OMAP_PM_NONE)
>>> 	freq = target_freq * 1000;
>>> 	if (opp_find_freq_ceil(mpu_dev, &freq))
>>>-		omap_pm_cpu_set_freq(freq);
>>>+		omap_device_set_rate(mpu_dev, freq);
>>> #endif
>>> 	return ret;
>>> }
>>>--
>>>1.7.0.rc1.33.g07cf0f
>>>
>>>--
>>>To unsubscribe from this list: send the line "unsubscribe linux-omap" in
>>>the body of a message to majordomo@xxxxxxxxxxxxxxx
>>>More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux