linux/arch/blackfin/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
..
cplb-mpu Blackfin: Rename IRQ flags handling functions 2010-10-07 14:08:52 +01:00
cplb-nompu Blackfin: no-mpu: fix masking of small uncached dma region 2011-01-10 07:18:18 -05:00
.gitignore Blackfin: ignore generated vmlinux.lds 2009-05-27 00:27:03 -04:00
asm-offsets.c Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
bfin_dma_5xx.c Blackfin: bf54x: add kconfig for UART2/3 DMA channel assignments 2011-03-18 03:49:23 -04:00
bfin_gpio.c Blackfin: gpio: add peripheral group check 2010-10-22 04:02:01 -04:00
bfin_ksyms.c Blackfin: move string functions to normal lib/ assembly 2010-05-22 14:19:09 -04:00
cplbinfo.c Blackfin: cplbinfo: drop d_path() hacks 2009-10-07 04:48:04 -04:00
dma-mapping.c Blackfin: dma-mapping: fix thinko in constant optimization 2010-03-09 00:30:46 -05:00
dumpstack.c Blackfin: make hardware trace output a little more useful 2010-05-21 09:40:19 -04:00
early_printk.c Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
entry.S Blackfin: initial XIP support 2010-03-09 00:30:48 -05:00
exception.c Blackfin: split kernel/traps.c 2010-05-21 09:40:17 -04:00
fixed_code.S Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
flat.c Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
ftrace-entry.S Blackfin: add support for dynamic ftrace 2010-08-06 12:55:54 -04:00
ftrace.c Blackfin: add support for dynamic ftrace 2010-08-06 12:55:54 -04:00
gptimers.c Blackfin: gptimers: use unsigned timer/group ids 2009-12-15 00:15:30 -05:00
init_task.c Blackfin: fix the section name of init_thread_union 2010-03-09 00:30:48 -05:00
ipipe.c Blackfin/ipipe: upgrade to I-pipe mainline 2011-03-18 04:01:10 -04:00
irqchip.c Blackfin: use accessor functions in show_interrupts() 2011-03-18 04:01:08 -04:00
kgdb_test.c Blackfin: kgdb_test: make sure to initialize num2 2011-01-10 07:18:23 -05:00
kgdb.c Blackfin: kgdb: drop dead KGDB_THR_PROC_SWAP for SMP systems 2011-03-18 03:49:26 -04:00
Makefile Blackfin: add support for dynamic ftrace 2010-08-06 12:55:54 -04:00
module.c Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
nmi.c Blackfin: split watchdog definitions into a dedicated header file 2010-03-09 00:30:50 -05:00
process.c BKL: remove extraneous #include <smp_lock.h> 2010-11-17 08:59:32 -08:00
pseudodbg.c Blackfin: show the whole accumulator in the pseudo DBG insn 2010-05-22 14:19:06 -04:00
ptrace.c ptrace: cleanup arch_ptrace() and friends on Blackfin 2010-10-27 18:03:10 -07:00
reboot.c Blackfin arch: bfin_reset->_bfin_reset redirection no longer needed 2009-02-04 16:49:45 +08:00
setup.c Blackfin: SMP: work around anomaly 05000491 2011-03-18 04:01:04 -04:00
shadow_console.c Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
signal.c Blackfin: add support for restart_syscall() 2010-03-09 00:30:51 -05:00
stacktrace.c Blackfin: add preliminary support for STACKTRACE 2009-06-13 07:20:14 -04:00
sys_bfin.c Blackfin: add new cacheflush syscall 2010-10-22 03:48:59 -04:00
time-ts.c Merge branch 'timers-for-linus-cleanups' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip 2010-05-19 17:10:06 -07:00
time.c blackfin: Switch from do_timer() to xtime_update() 2011-01-31 14:55:44 +01:00
trace.c Fix IRQ flag handling naming 2010-10-07 14:08:55 +01:00
traps.c Blackfin: add support for the DBG (debug output) pseudo insn 2010-05-22 14:19:05 -04:00
vmlinux.lds.S percpu: Always align percpu output section to PAGE_SIZE 2011-03-24 18:50:09 +01:00