summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorRussell King <rmk@flint.arm.linux.org.uk>2003-03-06 16:49:18 +0000
committerRussell King <rmk@flint.arm.linux.org.uk>2003-03-06 16:49:18 +0000
commitbdfd71e6e79f8ba31dc62e5472bf5f302dc33e31 (patch)
tree022338a79cd229ed213753743d320bce59939ef4 /kernel
parente3c33e3bca16b130c7f540e81de06706223c13e0 (diff)
[CPUFREQ] Update ARM CPUFREQ drivers
A 4 patch set from Dominik Brodowski, tested and fixed up by rmk for ARM. (1) - the system3.c cpufreq notifier couldn't possibly compile before because cpufreq_updateminmax has been undefined for ages. - clean up sa1100fb.c notifier to specify exactly what's left TBD. - double #include of cpufreq.c in drivers/pcmcia/sa1100_generic.c (2) Split up config symbols, add help text for CPU_FREQ_PROC_INTF (3) - update the Integrator CPUfreq driver so that it can get along with cpufreq policies. - modularize Integrator CPUfreq driver (all it did with !CONFIG_CPU_FREQ was to print out some debug information) (4) - update the SA11x0 CPUfreq drivers so that they can get along with cpufreq policies and governors. - update the cpufreq core so that cpufreq_get() returns something sensible during the first ->setpolicy or ->target call.
Diffstat (limited to 'kernel')
-rw-r--r--kernel/cpufreq.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/cpufreq.c b/kernel/cpufreq.c
index 0d32c6103731..8155b2860169 100644
--- a/kernel/cpufreq.c
+++ b/kernel/cpufreq.c
@@ -336,6 +336,13 @@ static int cpufreq_add_dev (struct device * dev)
&cpufreq_driver->policy[cpu],
sizeof(struct cpufreq_policy));
+ /* 2.4-API init for this CPU */
+#ifdef CONFIG_CPU_FREQ_24_API
+ cpu_min_freq[cpu] = cpufreq_driver->policy[cpu].cpuinfo.min_freq;
+ cpu_max_freq[cpu] = cpufreq_driver->policy[cpu].cpuinfo.max_freq;
+ cpu_cur_freq[cpu] = cpufreq_driver->cpu_cur_freq[cpu];
+#endif
+
if (cpufreq_driver->target)
cpufreq_governor(cpu, CPUFREQ_GOV_START);