diff options
Diffstat (limited to 'arch/ia64/kernel/module.c')
| -rw-r--r-- | arch/ia64/kernel/module.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/ia64/kernel/module.c b/arch/ia64/kernel/module.c index f1aca7cffd12..7a2f0a798d12 100644 --- a/arch/ia64/kernel/module.c +++ b/arch/ia64/kernel/module.c | |||
| @@ -947,8 +947,8 @@ void | |||
| 947 | percpu_modcopy (void *pcpudst, const void *src, unsigned long size) | 947 | percpu_modcopy (void *pcpudst, const void *src, unsigned long size) |
| 948 | { | 948 | { |
| 949 | unsigned int i; | 949 | unsigned int i; |
| 950 | for (i = 0; i < NR_CPUS; i++) | 950 | for_each_cpu(i) { |
| 951 | if (cpu_possible(i)) | 951 | memcpy(pcpudst + __per_cpu_offset[i], src, size); |
| 952 | memcpy(pcpudst + __per_cpu_offset[i], src, size); | 952 | } |
| 953 | } | 953 | } |
| 954 | #endif /* CONFIG_SMP */ | 954 | #endif /* CONFIG_SMP */ |
