diff options
author | Eric Dumazet <dada1@cosmosbay.com> | 2008-05-15 01:05:51 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-05-15 04:11:14 +0200 |
commit | 44c81433e8b05dbc85985d939046f10f95901184 (patch) | |
tree | 861801baf94a47c38f449f99aea6b5a0395f2f10 /mm/mprotect.c | |
parent | memory_hotplug: check for walk_memory_resource() failure in online_pages() (diff) | |
download | linux-44c81433e8b05dbc85985d939046f10f95901184.tar.xz linux-44c81433e8b05dbc85985d939046f10f95901184.zip |
per_cpu: fix DEFINE_PER_CPU_SHARED_ALIGNED for modules
Current module loader lookups ".data.percpu" ELF section to perform
per_cpu relocation. But DEFINE_PER_CPU_SHARED_ALIGNED() uses another
section (".data.percpu.shared_aligned"), currently only handled in
vmlinux.lds, not by module loader.
To correct this problem, instead of adding logic into module loader, or
using at build time a module.lds file for all arches to group
".data.percpu.shared_aligned" into ".data.percpu", just use ".data.percpu"
for modules.
Alignment requirements are correctly handled by ld and module loader.
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/mprotect.c')
0 files changed, 0 insertions, 0 deletions