[PATCH] for_each_possible_cpu [10/19] ia64

From: KAMEZAWA Hiroyuki
Date: Wed Mar 15 2006 - 22:29:34 EST


This patch replaces for_each_cpu with for_each_possible_cpu

under arch/ia64/kernel/.
module.c | 2 +-
smpboot.c | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)

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

Index: linux-2.6.16-rc6-mm1/arch/ia64/kernel/module.c
===================================================================
--- linux-2.6.16-rc6-mm1.orig/arch/ia64/kernel/module.c
+++ linux-2.6.16-rc6-mm1/arch/ia64/kernel/module.c
@@ -947,7 +947,7 @@ void
percpu_modcopy (void *pcpudst, const void *src, unsigned long size)
{
unsigned int i;
- for_each_cpu(i) {
+ for_each_possible_cpu(i) {
memcpy(pcpudst + __per_cpu_offset[i], src, size);
}
}
Index: linux-2.6.16-rc6-mm1/arch/ia64/kernel/smpboot.c
===================================================================
--- linux-2.6.16-rc6-mm1.orig/arch/ia64/kernel/smpboot.c
+++ linux-2.6.16-rc6-mm1/arch/ia64/kernel/smpboot.c
@@ -643,7 +643,7 @@ remove_from_mtinfo(int cpu)
{
int i;

- for_each_cpu(i)
+ for_each_possible_cpu(i)
if (mt_info[i].valid && mt_info[i].socket_id ==
cpu_data(cpu)->socket_id)
mt_info[i].valid = 0;
@@ -883,7 +883,7 @@ check_for_mtinfo_index(void)
{
int i;

- for_each_cpu(i)
+ for_each_possible_cpu(i)
if (!mt_info[i].valid)
return i;

@@ -901,7 +901,7 @@ check_for_new_socket(__u16 logical_addre
int i;
__u32 sid = c->socket_id;

- for_each_cpu(i) {
+ for_each_possible_cpu(i) {
if (mt_info[i].valid && mt_info[i].proc_fixed_addr == logical_address
&& mt_info[i].socket_id == sid) {
c->core_id = mt_info[i].core_id;
-
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/