lkml.org 
[lkml]   [2006]   [Mar]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] for_each_possible_cpu [10/19] ia64
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@jp.fjitsu.com>

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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2006-03-16 04:34    [W:0.035 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site