aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2006-06-25 08:46:43 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-25 13:00:54 -0400
commitfb1bb34d45400f12e0a33f8c487b3795674908a7 (patch)
tree11c593c83eff5a83999f4feee0d8937d1f575712 /arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
parent1e48275adc8c94c3281e646c8beb829f8e6f5bfc (diff)
[PATCH] remove for_each_cpu()
Convert a few stragglers over to for_each_possible_cpu(), remove for_each_cpu(). Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c')
-rw-r--r--arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c b/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
index 05668e3598c0..5fd65325b81a 100644
--- a/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
+++ b/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
@@ -371,11 +371,11 @@ static int acpi_cpufreq_early_init_acpi(void)
371 371
372 dprintk("acpi_cpufreq_early_init\n"); 372 dprintk("acpi_cpufreq_early_init\n");
373 373
374 for_each_cpu(i) { 374 for_each_possible_cpu(i) {
375 data = kzalloc(sizeof(struct acpi_processor_performance), 375 data = kzalloc(sizeof(struct acpi_processor_performance),
376 GFP_KERNEL); 376 GFP_KERNEL);
377 if (!data) { 377 if (!data) {
378 for_each_cpu(j) { 378 for_each_possible_cpu(j) {
379 kfree(acpi_perf_data[j]); 379 kfree(acpi_perf_data[j]);
380 acpi_perf_data[j] = NULL; 380 acpi_perf_data[j] = NULL;
381 } 381 }
@@ -584,7 +584,7 @@ acpi_cpufreq_exit (void)
584 584
585 cpufreq_unregister_driver(&acpi_cpufreq_driver); 585 cpufreq_unregister_driver(&acpi_cpufreq_driver);
586 586
587 for_each_cpu(i) { 587 for_each_possible_cpu(i) {
588 kfree(acpi_perf_data[i]); 588 kfree(acpi_perf_data[i]);
589 acpi_perf_data[i] = NULL; 589 acpi_perf_data[i] = NULL;
590 } 590 }