summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2008-04-18 08:56:15 +0200
committerPaul Mackerras <paulus@samba.org>2008-04-24 12:57:33 +0200
commit8c9843e57a7d9d7a090d6467a0f1f3afb8031527 (patch)
tree5efdab577853bc92e3c980fc97aba74be58c1efb /include
parent[POWERPC] PS3: Fix gelic net module dependency (diff)
downloadlinux-8c9843e57a7d9d7a090d6467a0f1f3afb8031527.tar.xz
linux-8c9843e57a7d9d7a090d6467a0f1f3afb8031527.zip
[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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/sched.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 311380e5fe89..d0bd97044abd 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1926,6 +1926,8 @@ static inline unsigned long *end_of_stack(struct task_struct *p)
#endif
+extern void thread_info_cache_init(void);
+
/* set thread flags in other task's structures
* - see asm/thread_info.h for TIF_xxxx flags available
*/