diff options
-rw-r--r-- | drivers/cpufreq/cpufreq.c | 7 |
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)) |