[PATCH] for_each_possible_cpu [4/19] under drivers/acpi

From: KAMEZAWA Hiroyuki
Date: Wed Mar 15 2006 - 22:23:38 EST


This patch replaces for_each_cpu with for_each_possible_cpu.
under drivers/acpi/
processor_perflib.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)

Signed-Off-By: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx>


Index: linux-2.6.16-rc6-mm1/drivers/acpi/processor_perflib.c
===================================================================
--- linux-2.6.16-rc6-mm1.orig/drivers/acpi/processor_perflib.c
+++ linux-2.6.16-rc6-mm1/drivers/acpi/processor_perflib.c
@@ -626,7 +626,7 @@ int acpi_processor_preregister_performan
retval = 0;

/* Call _PSD for all CPUs */
- for_each_cpu(i) {
+ for_each_possible_cpu(i) {
pr = processors[i];
if (!pr) {
/* Look only at processors in ACPI namespace */
@@ -657,7 +657,7 @@ int acpi_processor_preregister_performan
* Now that we have _PSD data from all CPUs, lets setup P-state
* domain info.
*/
- for_each_cpu(i) {
+ for_each_possible_cpu(i) {
pr = processors[i];
if (!pr)
continue;
@@ -678,7 +678,7 @@ int acpi_processor_preregister_performan
}

cpus_clear(covered_cpus);
- for_each_cpu(i) {
+ for_each_possible_cpu(i) {
pr = processors[i];
if (!pr)
continue;
@@ -702,7 +702,7 @@ int acpi_processor_preregister_performan
pr->performance->shared_type = CPUFREQ_SHARED_TYPE_ANY;
}

- for_each_cpu(j) {
+ for_each_possible_cpu(j) {
if (i == j)
continue;

@@ -731,7 +731,7 @@ int acpi_processor_preregister_performan
count++;
}

- for_each_cpu(j) {
+ for_each_possible_cpu(j) {
if (i == j)
continue;

@@ -755,7 +755,7 @@ err_ret:
ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Error while parsing _PSD domain information. Assuming no coordination\n"));
}

- for_each_cpu(i) {
+ for_each_possible_cpu(i) {
pr = processors[i];
if (!pr || !pr->performance)
continue;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/