diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2012-05-05 11:05:46 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2012-05-08 08:08:45 -0400 |
commit | df9a7b9b5d1a5ef8cd3474d0cea2c6428542e288 (patch) | |
tree | 4754c209b5df6eec595cb18ef9f0bb2e59a511d9 /arch/sh/include | |
parent | c03a6a7ba6f456663e4b254cdde460b24c0852e1 (diff) |
sh-use-common-threadinfo-allocator
The core now has a threadinfo allocator which uses a kmemcache when
THREAD_SIZE < PAGE_SIZE.
Deal with the xstate cleanup in the new arch_release_task_struct()
function.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Paul Mundt <lethal@linux-sh.org>
Link: http://lkml.kernel.org/r/20120505150142.189348931@linutronix.de
Diffstat (limited to 'arch/sh/include')
-rw-r--r-- | arch/sh/include/asm/thread_info.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/arch/sh/include/asm/thread_info.h b/arch/sh/include/asm/thread_info.h index 09963d4018cb..b6902061d4dc 100644 --- a/arch/sh/include/asm/thread_info.h +++ b/arch/sh/include/asm/thread_info.h | |||
@@ -88,21 +88,13 @@ static inline struct thread_info *current_thread_info(void) | |||
88 | return ti; | 88 | return ti; |
89 | } | 89 | } |
90 | 90 | ||
91 | /* thread information allocation */ | ||
92 | #if THREAD_SHIFT >= PAGE_SHIFT | ||
93 | |||
94 | #define THREAD_SIZE_ORDER (THREAD_SHIFT - PAGE_SHIFT) | 91 | #define THREAD_SIZE_ORDER (THREAD_SHIFT - PAGE_SHIFT) |
95 | 92 | ||
96 | #endif | ||
97 | |||
98 | extern struct thread_info *alloc_thread_info_node(struct task_struct *tsk, int node); | ||
99 | extern void free_thread_info(struct thread_info *ti); | ||
100 | extern void arch_task_cache_init(void); | 93 | extern void arch_task_cache_init(void); |
101 | extern int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src); | 94 | extern int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src); |
95 | extern void arch_release_task_struct(struct task_struct *tsk); | ||
102 | extern void init_thread_xstate(void); | 96 | extern void init_thread_xstate(void); |
103 | 97 | ||
104 | #define __HAVE_ARCH_THREAD_INFO_ALLOCATOR | ||
105 | |||
106 | #endif /* __ASSEMBLY__ */ | 98 | #endif /* __ASSEMBLY__ */ |
107 | 99 | ||
108 | /* | 100 | /* |