aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2010-06-01 09:46:01 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2010-06-01 09:46:01 -0700
commit22c0d01812b68631525672954eca3d38fd7c3963 (patch)
tree690ec40967184c706c942e5f8e0ee42272fdffbb
parent78a74485e7bf833a1fac8b0326d4c1dcce843a6e (diff)
Revert "modules: fix incorrect percpu usage"
This reverts commit ea0a09acd81c6d52c77d80f0d4089795df7bcb58. It should not have been applied to the .32 kernel tree. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--kernel/module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/module.c b/kernel/module.c
index a4aae3544a7..dfa33e8ee2a 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -555,7 +555,7 @@ static void percpu_modcopy(void *pcpudest, const void *from, unsigned long size)
int cpu;
for_each_possible_cpu(cpu)
- memcpy(per_cpu_ptr(pcpudest, cpu), from, size);
+ memcpy(pcpudest + per_cpu_offset(cpu), from, size);
}
#else /* ... !CONFIG_SMP */