diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2010-06-04 14:41:21 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2010-06-04 14:45:17 +1000 |
commit | 9e7fd3f7b574bdffb7994246aaa5a9e4aefb345e (patch) | |
tree | 6c6047568eac146c1d7eb0943ddc1c7c832979e0 | |
parent | b91afaea182febe297aaa30619a887e9920b908b (diff) |
module: don't reference percpu stuff in UP
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
-rw-r--r-- | kernel/module.c | 2 |
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); |