Star64_linux/arch/m32r/kernel
Tejun Heo 0415b00d17 percpu: Always align percpu output section to PAGE_SIZE
Percpu allocator honors alignment request upto PAGE_SIZE and both the
percpu addresses in the percpu address space and the translated kernel
addresses should be aligned accordingly.  The calculation of the
former depends on the alignment of percpu output section in the kernel
image.

The linker script macros PERCPU_VADDR() and PERCPU() are used to
define this output section and the latter takes @align parameter.
Several architectures are using @align smaller than PAGE_SIZE breaking
percpu memory alignment.

This patch removes @align parameter from PERCPU(), renames it to
PERCPU_SECTION() and makes it always align to PAGE_SIZE.  While at it,
add PCPU_SETUP_BUG_ON() checks such that alignment problems are
reliably detected and remove percpu alignment comment recently added
in workqueue.c as the condition would trigger BUG way before reaching
there.

For um, this patch raises the alignment of percpu area.  As the area
is in .init, there shouldn't be any noticeable difference.

This problem was discovered by David Howells while debugging boot
failure on mn10300.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Cc: uclinux-dist-devel@blackfin.uclinux.org
Cc: David Howells <dhowells@redhat.com>
Cc: Jeff Dike <jdike@addtoit.com>
Cc: user-mode-linux-devel@lists.sourceforge.net
2011-03-24 18:50:09 +01:00
..
.gitignore m32r: add kernel/.gitignore and ignore vmlinux.lds 2010-10-15 19:37:50 -07:00
align.c
asm-offsets.c
entry.S make m32r handle multiple pending signals 2010-09-24 13:54:19 -07:00
head.S m32r: Move the spi_stack_top and spu_stack_top into .init.data section. 2009-09-23 00:29:40 +09:00
init_task.c Use new __init_task_data macro in arch init_task.c files. 2009-09-21 06:27:08 +02:00
irq.c m32r: Fixup last __do_IRQ leftover 2011-02-05 21:46:35 +01:00
m32r_ksyms.c m32r: export delay loop symbols 2009-10-04 12:02:36 +09:00
Makefile m32r: build fix for __stringify macro 2009-05-02 21:43:26 +09:00
module.c module: cleanup FIXME comments about trimming exception table entries. 2009-06-12 21:47:05 +09:30
process.c Make do_execve() take a const filename pointer 2010-08-17 18:07:43 -07:00
ptrace.c ptrace: cleanup arch_ptrace() on m32r 2010-10-27 18:03:11 -07:00
setup.c procfs: constify function pointer tables 2008-02-08 09:22:38 -08:00
signal.c m32r: get_user takes an lvalue, not a pointer 2010-10-15 19:37:50 -07:00
smp.c m32r: Should index be positive? 2009-11-04 08:39:26 +09:00
smpboot.c cpumask: Use accessors for cpu_*_mask: m32r 2009-09-24 09:34:47 +09:30
sys_m32r.c Make do_execve() take a const filename pointer 2010-08-17 18:07:43 -07:00
syscall_table.S Unify sys_mmap* 2009-12-11 06:44:29 -05:00
time.c m32r: Switch from do_timer() to xtime_update() 2011-01-31 14:55:45 +01:00
traps.c m32r: Fix IPI function calls for SMP 2009-10-04 12:02:37 +09:00
vmlinux.lds.S percpu: Always align percpu output section to PAGE_SIZE 2011-03-24 18:50:09 +01:00