[POWERPC] Add thread_info_cache_init() weak hook
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 18 Apr 2008 06:56:15 +0000 (16:56 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 24 Apr 2008 10:57:33 +0000 (20:57 +1000)
commit8c9843e57a7d9d7a090d6467a0f1f3afb8031527
tree5efdab577853bc92e3c980fc97aba74be58c1efb
parent1d32e21889b96e594e8b63b193bf7d2a51ab93ec
[POWERPC] Add thread_info_cache_init() weak hook

Some architectures need to maintain a kmem cache for thread info
structures.  The next commit adds that to powerpc to fix an alignment
problem.

There is no good arch callback to use to initialize that cache
that I can find, so this adds a new one in the form of a weak
function whose default is empty.

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>
include/linux/sched.h
init/main.c