]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
sh: Support kernel stacks smaller than a page.
authorPaul Mundt <lethal@linux-sh.org>
Sat, 20 Sep 2008 11:21:33 +0000 (20:21 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Sat, 20 Sep 2008 11:21:33 +0000 (20:21 +0900)
commitc15c5f8c2bf0b00d036c5c6b67264764a6e5dffc
treefb4aca715702ba76edb95424fd2a573fa3ed6a28
parentb817f7e020958c8f79842076c137daa6f72eb366
sh: Support kernel stacks smaller than a page.

This follows the powerpc commit f6a616800e68b61807d0f7bb0d5dc70665ef8046
'[POWERPC] Fix kernel stack allocation alignment'.

SH has traditionally forced the thread order to be relative to the page
size, so there were never any situations where the same bug was
triggered by slub. Regardless, the usage of > 8kB stacks for the larger
page sizes is overkill, so we switch to using slab allocations there,
as per the powerpc change.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/thread_info.h
arch/sh/mm/init.c