]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
ACPI: use for_each_possible_cpu() instead of for_each_cpu()
authorKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Thu, 27 Apr 2006 09:25:00 +0000 (05:25 -0400)
committerLen Brown <len.brown@intel.com>
Sun, 14 May 2006 03:11:29 +0000 (23:11 -0400)
commit193de0c79da580eb33a66113b62e2378fc1fb629
tree62e278011d758b57105af7d00d1b0b9977d0f2e3
parent9011bff4bdc0fef1f9a782d7415c306ee61826c9
ACPI: use for_each_possible_cpu() instead of for_each_cpu()

for_each_cpu() actually iterates across all possible CPUs.  We've had mistakes
in the past where people were using for_each_cpu() where they should have been
iterating across only online or present CPUs.  This is inefficient and
possibly buggy.

We're renaming for_each_cpu() to for_each_possible_cpu() to avoid this in the
future.

Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/processor_perflib.c