diff options
author | KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> | 2006-03-28 04:56:37 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-28 12:16:05 -0500 |
commit | 0a945022778f100115d0cb6234eb28fc1b15ccaf (patch) | |
tree | 85df4b5f7dd8bf59557091379c59b23b09115bf6 /mm/slab.c | |
parent | 631d6747e1d877a4baa924cb373b8b9511a53e5e (diff) |
[PATCH] for_each_possible_cpu: fixes for generic part
replaces for_each_cpu with for_each_possible_cpu().
Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/slab.c')
-rw-r--r-- | mm/slab.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3311,7 +3311,7 @@ void *__alloc_percpu(size_t size) | |||
3311 | * and we have no way of figuring out how to fix the array | 3311 | * and we have no way of figuring out how to fix the array |
3312 | * that we have allocated then.... | 3312 | * that we have allocated then.... |
3313 | */ | 3313 | */ |
3314 | for_each_cpu(i) { | 3314 | for_each_possible_cpu(i) { |
3315 | int node = cpu_to_node(i); | 3315 | int node = cpu_to_node(i); |
3316 | 3316 | ||
3317 | if (node_online(node)) | 3317 | if (node_online(node)) |
@@ -3398,7 +3398,7 @@ void free_percpu(const void *objp) | |||
3398 | /* | 3398 | /* |
3399 | * We allocate for all cpus so we cannot use for online cpu here. | 3399 | * We allocate for all cpus so we cannot use for online cpu here. |
3400 | */ | 3400 | */ |
3401 | for_each_cpu(i) | 3401 | for_each_possible_cpu(i) |
3402 | kfree(p->ptrs[i]); | 3402 | kfree(p->ptrs[i]); |
3403 | kfree(p); | 3403 | kfree(p); |
3404 | } | 3404 | } |