aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/include/asm
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-01-12 05:01:11 -0500
committerPaul Mundt <lethal@linux-sh.org>2010-01-12 05:01:11 -0500
commitcbf6b1ba7ae12b3f7cb6b0d060b88d44649f9eda (patch)
tree267582b42611b11c6a01681855d190bacf488b01 /arch/sh/include/asm
parent70e068eef97d05c97c3512f82352f39fdadfa8cb (diff)
sh: Always provide thread_info allocators.
Presently the thread_info allocators are special cased, depending on THREAD_SHIFT < PAGE_SHIFT. This provides a sensible definition for them regardless of configuration, in preparation for extended CPU state. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/asm')
-rw-r--r--arch/sh/include/asm/thread_info.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/sh/include/asm/thread_info.h b/arch/sh/include/asm/thread_info.h
index 1f3d927e2265..2c5b48edeab9 100644
--- a/arch/sh/include/asm/thread_info.h
+++ b/arch/sh/include/asm/thread_info.h
@@ -93,14 +93,12 @@ static inline struct thread_info *current_thread_info(void)
93 93
94#define THREAD_SIZE_ORDER (THREAD_SHIFT - PAGE_SHIFT) 94#define THREAD_SIZE_ORDER (THREAD_SHIFT - PAGE_SHIFT)
95 95
96#else /* THREAD_SHIFT < PAGE_SHIFT */ 96#endif
97
98#define __HAVE_ARCH_THREAD_INFO_ALLOCATOR
99 97
100extern struct thread_info *alloc_thread_info(struct task_struct *tsk); 98extern struct thread_info *alloc_thread_info(struct task_struct *tsk);
101extern void free_thread_info(struct thread_info *ti); 99extern void free_thread_info(struct thread_info *ti);
102 100
103#endif /* THREAD_SHIFT < PAGE_SHIFT */ 101#define __HAVE_ARCH_THREAD_INFO_ALLOCATOR
104 102
105#endif /* __ASSEMBLY__ */ 103#endif /* __ASSEMBLY__ */
106 104