diff options
author | Thomas Renninger <trenn@suse.de> | 2007-10-02 16:28:09 -0400 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2007-10-04 18:40:57 -0400 |
commit | 8122c6cea033e8034e99d3b10a4e3f377ce23994 (patch) | |
tree | 00c7263e242e5c821abfe627bace54bba7696777 /arch/arm | |
parent | a09d60a622ea4a3592dc6836e709d4a7a4ed4025 (diff) |
[CPUFREQ] move policy's governor initialisation out of low-level drivers into cpufreq core
Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: Bryan Wu <bryan.wu@analog.com>
Cc: Andi Kleen <ak@suse.de>
Cc: "Luck, Tony" <tony.luck@intel.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-imx/cpufreq.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-sa1100/cpu-sa1110.c | 1 | ||||
-rw-r--r-- | arch/arm/plat-omap/cpu-omap.c | 1 |
3 files changed, 0 insertions, 3 deletions
diff --git a/arch/arm/mach-imx/cpufreq.c b/arch/arm/mach-imx/cpufreq.c index 467d899fbe75..e548ba74a4d2 100644 --- a/arch/arm/mach-imx/cpufreq.c +++ b/arch/arm/mach-imx/cpufreq.c | |||
@@ -269,7 +269,6 @@ static int __init imx_cpufreq_driver_init(struct cpufreq_policy *policy) | |||
269 | return -EINVAL; | 269 | return -EINVAL; |
270 | 270 | ||
271 | policy->cur = policy->min = policy->max = imx_get_speed(0); | 271 | policy->cur = policy->min = policy->max = imx_get_speed(0); |
272 | policy->governor = CPUFREQ_DEFAULT_GOVERNOR; | ||
273 | policy->cpuinfo.min_freq = 8000; | 272 | policy->cpuinfo.min_freq = 8000; |
274 | policy->cpuinfo.max_freq = 200000; | 273 | policy->cpuinfo.max_freq = 200000; |
275 | /* Manual states, that PLL stabilizes in two CLK32 periods */ | 274 | /* Manual states, that PLL stabilizes in two CLK32 periods */ |
diff --git a/arch/arm/mach-sa1100/cpu-sa1110.c b/arch/arm/mach-sa1100/cpu-sa1110.c index 78f4c1346044..36b47ff5af11 100644 --- a/arch/arm/mach-sa1100/cpu-sa1110.c +++ b/arch/arm/mach-sa1100/cpu-sa1110.c | |||
@@ -331,7 +331,6 @@ static int __init sa1110_cpu_init(struct cpufreq_policy *policy) | |||
331 | if (policy->cpu != 0) | 331 | if (policy->cpu != 0) |
332 | return -EINVAL; | 332 | return -EINVAL; |
333 | policy->cur = policy->min = policy->max = sa11x0_getspeed(0); | 333 | policy->cur = policy->min = policy->max = sa11x0_getspeed(0); |
334 | policy->governor = CPUFREQ_DEFAULT_GOVERNOR; | ||
335 | policy->cpuinfo.min_freq = 59000; | 334 | policy->cpuinfo.min_freq = 59000; |
336 | policy->cpuinfo.max_freq = 287000; | 335 | policy->cpuinfo.max_freq = 287000; |
337 | policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL; | 336 | policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL; |
diff --git a/arch/arm/plat-omap/cpu-omap.c b/arch/arm/plat-omap/cpu-omap.c index a0c71dca2373..c0d63b0c61c9 100644 --- a/arch/arm/plat-omap/cpu-omap.c +++ b/arch/arm/plat-omap/cpu-omap.c | |||
@@ -108,7 +108,6 @@ static int __init omap_cpu_init(struct cpufreq_policy *policy) | |||
108 | if (policy->cpu != 0) | 108 | if (policy->cpu != 0) |
109 | return -EINVAL; | 109 | return -EINVAL; |
110 | policy->cur = policy->min = policy->max = omap_getspeed(0); | 110 | policy->cur = policy->min = policy->max = omap_getspeed(0); |
111 | policy->governor = CPUFREQ_DEFAULT_GOVERNOR; | ||
112 | policy->cpuinfo.min_freq = clk_round_rate(mpu_clk, 0) / 1000; | 111 | policy->cpuinfo.min_freq = clk_round_rate(mpu_clk, 0) / 1000; |
113 | policy->cpuinfo.max_freq = clk_round_rate(mpu_clk, VERY_HI_RATE) / 1000; | 112 | policy->cpuinfo.max_freq = clk_round_rate(mpu_clk, VERY_HI_RATE) / 1000; |
114 | policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL; | 113 | policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL; |