summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonghwa Lee <jonghwa3.lee@samsung.com>2013-11-08 17:53:46 +0900
committerMyungJoo Ham <myungjoo.ham@samsung.com>2013-11-15 13:59:26 +0900
commit0e2c8bcfafe8e2f29bfbb6da649506c221d72fdd (patch)
tree407a4ffba76c27f3b05ee10c3a181109d9bd2054
parenta02f80423b95e4d136af6fc9e88fa911f815a092 (diff)
downloadlinux-3.10-0e2c8bcfafe8e2f29bfbb6da649506c221d72fdd.tar.gz
linux-3.10-0e2c8bcfafe8e2f29bfbb6da649506c221d72fdd.tar.bz2
linux-3.10-0e2c8bcfafe8e2f29bfbb6da649506c221d72fdd.zip
cpufreq: exysnos: Fix the way of enabling boost in exynos cpufreq driver.
Follow the codes from ML. Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
-rw-r--r--arch/arm/boot/dts/exynos4412-redwood.dts1
-rw-r--r--drivers/cpufreq/exynos-cpufreq.c10
2 files changed, 3 insertions, 8 deletions
diff --git a/arch/arm/boot/dts/exynos4412-redwood.dts b/arch/arm/boot/dts/exynos4412-redwood.dts
index e6dca07c5df..09cf22cf69c 100644
--- a/arch/arm/boot/dts/exynos4412-redwood.dts
+++ b/arch/arm/boot/dts/exynos4412-redwood.dts
@@ -140,7 +140,6 @@
cpufreq {
freq_table;
- boost_mode = "okay";
status = "okay";
};
diff --git a/drivers/cpufreq/exynos-cpufreq.c b/drivers/cpufreq/exynos-cpufreq.c
index 51a126cc784..249d19b7488 100644
--- a/drivers/cpufreq/exynos-cpufreq.c
+++ b/drivers/cpufreq/exynos-cpufreq.c
@@ -277,6 +277,9 @@ static struct cpufreq_driver exynos_driver = {
.exit = exynos_cpufreq_cpu_exit,
.name = "exynos_cpufreq",
.attr = exynos_cpufreq_attr,
+#ifdef CONFIG_CPU_FREQ_BOOST_SW
+ .boost_supported = true,
+#endif
#ifdef CONFIG_PM
.suspend = exynos_cpufreq_suspend,
.resume = exynos_cpufreq_resume,
@@ -405,9 +408,6 @@ static struct of_device_id exynos_cpufreq_of_match[] = {
static int exynos_cpufreq_probe(struct platform_device *pdev)
{
-#ifdef CONFIG_CPU_FREQ_BOOST_SW
- struct device_node *node = pdev->dev.of_node;
-#endif
int ret = -EINVAL;
exynos_info = kzalloc(sizeof(struct exynos_dvfs_info), GFP_KERNEL);
@@ -440,10 +440,6 @@ static int exynos_cpufreq_probe(struct platform_device *pdev)
}
locking_frequency = exynos_getspeed(0);
-#ifdef CONFIG_CPU_FREQ_BOOST_SW
- if (of_property_read_bool(node, "boost_mode"))
- exynos_driver.boost_supported = true;
-#endif
register_pm_notifier(&exynos_cpufreq_nb);