fork: Provide kmemcache based thread_info allocator
authorThomas Gleixner <tglx@linutronix.de>
Sat, 5 May 2012 15:05:41 +0000 (15:05 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 8 May 2012 12:08:44 +0000 (14:08 +0200)
commit0d15d74a1ead10673b5b1db66d4c90552769096c
treed8eadc48f0aa1ec04172a66b2bcf78d3cb7a0ba1
parent67ba5293f705eb1d1b98710e5ccb0f615936a6fc
fork: Provide kmemcache based thread_info allocator

Several architectures have their own kmemcache based thread allocator
because THREAD_SIZE is smaller than PAGE_SIZE. Add it to the core code
conditionally on THREAD_SIZE < PAGE_SIZE so the private copies can go.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20120505150141.491002124@linutronix.de
kernel/fork.c