kernel-fxtec-pro1x/arch/mn10300/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
..
asm-offsets.c MN10300: Save frame pointer in thread_info struct rather than global var 2010-10-27 17:29:01 +01:00
cevt-mn10300.c MN10300: Select GENERIC_HARDIRQS_NO_DEPRECATED 2011-03-18 16:52:53 +00:00
csrc-mn10300.c MN10300: Use clocksource_register_hz() 2011-03-18 16:52:50 +00:00
entry.S MN10300: Create generic kernel debugger hooks 2011-03-18 16:54:30 +00:00
fpu-low.S MN10300: Make the FPU operate in non-lazy mode under SMP 2010-10-27 17:28:52 +01:00
fpu-nofpu-low.S MN10300: Make the FPU operate in non-lazy mode under SMP 2010-10-27 17:28:52 +01:00
fpu-nofpu.c MN10300: Make the FPU operate in non-lazy mode under SMP 2010-10-27 17:28:52 +01:00
fpu.c MN10300: Create generic kernel debugger hooks 2011-03-18 16:54:30 +00:00
gdb-io-serial-low.S MN10300: And Panasonic AM34 subarch and implement SMP 2010-10-27 17:28:55 +01:00
gdb-io-serial.c MN10300: Fix interrupt mask alteration function call name in gdbstub 2010-12-07 11:29:14 -08:00
gdb-io-ttysm-low.S Separate out the proc- and unit-specific header directories from the general 2009-04-10 14:33:48 +01:00
gdb-io-ttysm.c MN10300: Create generic kernel debugger hooks 2011-03-18 16:54:30 +00:00
gdb-low.S mn10300: add the MN10300/AM33 architecture to the kernel 2008-02-08 09:22:30 -08:00
gdb-stub.c MN10300: Create generic kernel debugger hooks 2011-03-18 16:54:30 +00:00
head.S MN10300: And Panasonic AM34 subarch and implement SMP 2010-10-27 17:28:55 +01:00
init_task.c Use new __init_task_data macro in arch init_task.c files. 2009-09-21 06:27:08 +02:00
internal.h MN10300: Create generic kernel debugger hooks 2011-03-18 16:54:30 +00:00
io.c mn10300: add the MN10300/AM33 architecture to the kernel 2008-02-08 09:22:30 -08:00
irq.c MN10300: Create generic kernel debugger hooks 2011-03-18 16:54:30 +00:00
kernel_execve.S mn10300: add the MN10300/AM33 architecture to the kernel 2008-02-08 09:22:30 -08:00
kgdb.c MN10300: Emulate single stepping in KGDB on MN10300 2011-03-18 16:54:32 +00:00
kprobes.c MN10300: Allow some cacheflushes to be avoided if cache snooping is available 2010-10-27 17:28:46 +01:00
kthread.S mn10300: add the MN10300/AM33 architecture to the kernel 2008-02-08 09:22:30 -08:00
Makefile MN10300: Use KGDB 2011-03-18 16:54:31 +00:00
mn10300-debug.c mn10300: add the MN10300/AM33 architecture to the kernel 2008-02-08 09:22:30 -08:00
mn10300-serial-low.S MN10300: And Panasonic AM34 subarch and implement SMP 2010-10-27 17:28:55 +01:00
mn10300-serial.c MN10300: Allow KGDB to use the MN10300 serial ports 2011-03-18 16:54:32 +00:00
mn10300-serial.h mn10300: add the MN10300/AM33 architecture to the kernel 2008-02-08 09:22:30 -08:00
mn10300-watchdog-low.S MN10300: And Panasonic AM34 subarch and implement SMP 2010-10-27 17:28:55 +01:00
mn10300-watchdog.c MN10300: Save frame pointer in thread_info struct rather than global var 2010-10-27 17:29:01 +01:00
mn10300_ksyms.c mn10300: provide __ucmpdi2() for MN10300 2008-07-04 10:40:07 -07:00
module.c modules: Fix module_bug_list list corruption race 2010-10-05 11:29:27 -07:00
process.c MN10300: Generalise kernel debugger kernel halt, reboot or power off hook 2011-03-18 16:54:31 +00:00
profile-low.S mn10300: add the MN10300/AM33 architecture to the kernel 2008-02-08 09:22:30 -08:00
profile.c MN10300: And Panasonic AM34 subarch and implement SMP 2010-10-27 17:28:55 +01:00
ptrace.c ptrace: cleanup arch_ptrace() on mn10300 2010-10-27 18:03:11 -07:00
rtc.c set_rtc_mmss: show warning message only once 2011-01-13 08:03:07 -08:00
setup.c MN10300: Change "Matsushita" to "Panasonic". 2010-10-27 17:29:00 +01:00
sigframe.h mn10300: add the MN10300/AM33 architecture to the kernel 2008-02-08 09:22:30 -08:00
signal.c MN10300: Save frame pointer in thread_info struct rather than global var 2010-10-27 17:29:01 +01:00
smp-low.S MN10300: And Panasonic AM34 subarch and implement SMP 2010-10-27 17:28:55 +01:00
smp.c MN10300: Create generic kernel debugger hooks 2011-03-18 16:54:30 +00:00
switch_to.S MN10300: Emulate single stepping in KGDB on MN10300 2011-03-18 16:54:32 +00:00
sys_mn10300.c Add generic sys_ipc wrapper 2010-03-12 15:52:32 -08:00
time.c MN10300: Use clockevents_calc_mult_shift() 2011-03-18 16:52:50 +00:00
traps.c MN10300: Create generic kernel debugger hooks 2011-03-18 16:54:30 +00:00
vmlinux.lds.S percpu: Always align percpu output section to PAGE_SIZE 2011-03-24 18:50:09 +01:00