kernel_optimize_test/arch/powerpc
Benjamin Herrenschmidt f6a616800e [POWERPC] Fix kernel stack allocation alignment
The powerpc kernel stacks need to be naturally aligned, as they
contain the thread info at the bottom, which is obtained by
clearing the low bits of the stack pointer.

However, when using 64K pages, the stack is smaller than a page,
so we use kmalloc to allocate it, but that doesn't provide the
alignment guarantee we need.

It appeared to work so far... until one enables SLUB debugging
which then returns unaligned pointers.  Ooops...

This fixes it by using a slab cache with enforced alignment.  It
relies on my previous patch that adds a thread_info_cache_init()
callback.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2008-04-24 20:57:33 +10:00
..
boot [POWERPC] 85xx: Fix the size of qe muram for MPC8568E 2008-04-17 09:52:18 -05:00
configs [POWERPC] 83xx: Enable FCM NAND and OF partitions in defconfig 2008-04-17 01:01:41 -05:00
kernel [POWERPC] Fix kernel stack allocation alignment 2008-04-24 20:57:33 +10:00
lib [POWERPC] Make rheap safe for spinlocks 2008-04-17 09:50:38 -05:00
math-emu [POWERPC] Replace remaining __FUNCTION__ occurrences 2008-04-01 20:43:09 +11:00
mm [POWERPC] Add include of linux/of.h to numa.c 2008-04-24 20:57:32 +10:00
oprofile Merge branch 'linux-2.6' 2008-04-14 21:11:02 +10:00
platforms [POWERPC] Add include of linux/of.h to os-area.c 2008-04-24 20:57:33 +10:00
sysdev Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc 2008-04-21 15:50:49 -07:00
xmon [POWERPC] Move stackframe definitions to common header 2008-04-18 15:37:18 +10:00
.gitignore
Kconfig [POWERPC] irqtrace support for 64-bit powerpc 2008-04-18 15:38:47 +10:00
Kconfig.debug [POWERPC] cpm-serial: Relocate CPM buffer descriptors and SMC parameter ram. 2008-04-17 01:01:37 -05:00
Makefile [POWERPC] Provide access to arch/powerpc include path on ppc64 2008-04-17 07:46:12 +10:00