aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.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/speedstep-centrino.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/speedstep-centrino.c')
-rw-r--r--arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c b/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
index 31c3a5baaa7f..f7e4356f6820 100644
--- a/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
+++ b/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
@@ -361,11 +361,11 @@ static int centrino_cpu_early_init_acpi(void)
361 unsigned int i, j; 361 unsigned int i, j;
362 struct acpi_processor_performance *data; 362 struct acpi_processor_performance *data;
363 363
364 for_each_cpu(i) { 364 for_each_possible_cpu(i) {
365 data = kzalloc(sizeof(struct acpi_processor_performance), 365 data = kzalloc(sizeof(struct acpi_processor_performance),
366 GFP_KERNEL); 366 GFP_KERNEL);
367 if (!data) { 367 if (!data) {
368 for_each_cpu(j) { 368 for_each_possible_cpu(j) {
369 kfree(acpi_perf_data[j]); 369 kfree(acpi_perf_data[j]);
370 acpi_perf_data[j] = NULL; 370 acpi_perf_data[j] = NULL;
371 } 371 }
@@ -805,7 +805,7 @@ static void __exit centrino_exit(void)
805 cpufreq_unregister_driver(&centrino_driver); 805 cpufreq_unregister_driver(&centrino_driver);
806 806
807#ifdef CONFIG_X86_SPEEDSTEP_CENTRINO_ACPI 807#ifdef CONFIG_X86_SPEEDSTEP_CENTRINO_ACPI
808 for_each_cpu(j) { 808 for_each_possible_cpu(j) {
809 kfree(acpi_perf_data[j]); 809 kfree(acpi_perf_data[j]);
810 acpi_perf_data[j] = NULL; 810 acpi_perf_data[j] = NULL;
811 } 811 }