From bdfd71e6e79f8ba31dc62e5472bf5f302dc33e31 Mon Sep 17 00:00:00 2001 From: Russell King Date: Thu, 6 Mar 2003 16:49:18 +0000 Subject: [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. --- kernel/cpufreq.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'kernel/cpufreq.c') 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); -- cgit v1.2.3