diff options
author | Thomas Renninger <trenn@suse.de> | 2010-04-20 07:17:35 -0400 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2010-08-03 13:47:05 -0400 |
commit | 6b72e3934b42930fd40fc42fe762d21be413301c (patch) | |
tree | 3159c30c7248fe9fbfc583b96d2799b57a02da43 /arch/x86 | |
parent | a665df9d510bfd5bac5664f436411f921471264a (diff) |
[CPUFREQ] acpi-cpufreq: Fix CPU_ANY CPUFREQ_{PRE,POST}CHANGE notification
Signed-off-by: Thomas Renninger <trenn@suse.de>
CC: venki@google.com
CC: davej@redhat.com
CC: arjan@infradead.org
CC: linux-kernel@vger.kernel.org
Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c b/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c index 1d3cddaa40ee..cee7aa949c35 100644 --- a/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c +++ b/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c | |||
@@ -351,7 +351,7 @@ static int acpi_cpufreq_target(struct cpufreq_policy *policy, | |||
351 | 351 | ||
352 | freqs.old = perf->states[perf->state].core_frequency * 1000; | 352 | freqs.old = perf->states[perf->state].core_frequency * 1000; |
353 | freqs.new = data->freq_table[next_state].frequency; | 353 | freqs.new = data->freq_table[next_state].frequency; |
354 | for_each_cpu(i, cmd.mask) { | 354 | for_each_cpu(i, policy->cpus) { |
355 | freqs.cpu = i; | 355 | freqs.cpu = i; |
356 | cpufreq_notify_transition(&freqs, CPUFREQ_PRECHANGE); | 356 | cpufreq_notify_transition(&freqs, CPUFREQ_PRECHANGE); |
357 | } | 357 | } |
@@ -367,7 +367,7 @@ static int acpi_cpufreq_target(struct cpufreq_policy *policy, | |||
367 | } | 367 | } |
368 | } | 368 | } |
369 | 369 | ||
370 | for_each_cpu(i, cmd.mask) { | 370 | for_each_cpu(i, policy->cpus) { |
371 | freqs.cpu = i; | 371 | freqs.cpu = i; |
372 | cpufreq_notify_transition(&freqs, CPUFREQ_POSTCHANGE); | 372 | cpufreq_notify_transition(&freqs, CPUFREQ_POSTCHANGE); |
373 | } | 373 | } |