Skip to content

Commit

Permalink
Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git…
Browse files Browse the repository at this point in the history
…/davej/cpufreq

* 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/davej/cpufreq:
  [CPUFREQ] Fix compile failure in cpufreq.c
  • Loading branch information
Linus Torvalds committed Jul 9, 2009
2 parents 2e31673 + 5e1596f commit 34f2547
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions drivers/cpufreq/cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -776,9 +776,6 @@ static int cpufreq_add_dev(struct sys_device *sys_dev)
struct sys_device *cpu_sys_dev;
unsigned long flags;
unsigned int j;
#ifdef CONFIG_SMP
struct cpufreq_policy *managed_policy;
#endif

if (cpu_is_offline(cpu))
return 0;
Expand Down Expand Up @@ -854,6 +851,8 @@ static int cpufreq_add_dev(struct sys_device *sys_dev)
#endif

for_each_cpu(j, policy->cpus) {
struct cpufreq_policy *managed_policy;

if (cpu == j)
continue;

Expand Down Expand Up @@ -932,6 +931,8 @@ static int cpufreq_add_dev(struct sys_device *sys_dev)

/* symlink affected CPUs */
for_each_cpu(j, policy->cpus) {
struct cpufreq_policy *managed_policy;

if (j == cpu)
continue;
if (!cpu_online(j))
Expand Down

0 comments on commit 34f2547

Please sign in to comment.