summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2010-06-04 14:41:21 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2010-06-04 14:45:17 +1000
commit9e7fd3f7b574bdffb7994246aaa5a9e4aefb345e (patch)
tree6c6047568eac146c1d7eb0943ddc1c7c832979e0
parentb91afaea182febe297aaa30619a887e9920b908b (diff)
module: don't reference percpu stuff in UP
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
-rw-r--r--kernel/module.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/module.c b/kernel/module.c
index 69a3f12a117b..aebd164d26b1 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -2523,7 +2523,9 @@ static int post_relocation(struct module *mod, const struct load_info *info)
sort_extable(mod->extable, mod->extable + mod->num_exentries);
/* Copy relocated percpu area over. */
+#ifdef CONFIG_SMP
percpu_modcopy(mod, info->orig_percpu, mod->percpu_size);
+#endif
/* Setup kallsyms-specific fields. */
add_kallsyms(mod, info);