aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/cpufreq.c
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2009-07-08 16:14:23 -0400
committerDave Jones <davej@redhat.com>2009-07-08 19:04:23 -0400
commit5e1596f75395e7a402e1059c518e633d2732dcf8 (patch)
tree38125e71bb4f67c4ad9693a638f507b249a4ded1 /drivers/cpufreq/cpufreq.c
parent44b572809581d5a10dbe35aa6bf689f32b9c5ad6 (diff)
[CPUFREQ] Fix compile failure in cpufreq.c
managed_policy is out of scope for the non-smp case. Declare it locally where used (twice) Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'drivers/cpufreq/cpufreq.c')
-rw-r--r--drivers/cpufreq/cpufreq.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
index c668ac855f71..b90eda8b3440 100644
--- a/drivers/cpufreq/cpufreq.c
+++ b/drivers/cpufreq/cpufreq.c
@@ -776,9 +776,6 @@ static int cpufreq_add_dev(struct sys_device *sys_dev)
776 struct sys_device *cpu_sys_dev; 776 struct sys_device *cpu_sys_dev;
777 unsigned long flags; 777 unsigned long flags;
778 unsigned int j; 778 unsigned int j;
779#ifdef CONFIG_SMP
780 struct cpufreq_policy *managed_policy;
781#endif
782 779
783 if (cpu_is_offline(cpu)) 780 if (cpu_is_offline(cpu))
784 return 0; 781 return 0;
@@ -854,6 +851,8 @@ static int cpufreq_add_dev(struct sys_device *sys_dev)
854#endif 851#endif
855 852
856 for_each_cpu(j, policy->cpus) { 853 for_each_cpu(j, policy->cpus) {
854 struct cpufreq_policy *managed_policy;
855
857 if (cpu == j) 856 if (cpu == j)
858 continue; 857 continue;
859 858
@@ -932,6 +931,8 @@ static int cpufreq_add_dev(struct sys_device *sys_dev)
932 931
933 /* symlink affected CPUs */ 932 /* symlink affected CPUs */
934 for_each_cpu(j, policy->cpus) { 933 for_each_cpu(j, policy->cpus) {
934 struct cpufreq_policy *managed_policy;
935
935 if (j == cpu) 936 if (j == cpu)
936 continue; 937 continue;
937 if (!cpu_online(j)) 938 if (!cpu_online(j))