aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-sh/thread_info.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-sh/thread_info.h')
-rw-r--r--include/asm-sh/thread_info.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-sh/thread_info.h b/include/asm-sh/thread_info.h
index c50e5d35fe84..eeb4c747119e 100644
--- a/include/asm-sh/thread_info.h
+++ b/include/asm-sh/thread_info.h
@@ -38,6 +38,8 @@ struct thread_info {
38#define THREAD_SIZE_ORDER (1) 38#define THREAD_SIZE_ORDER (1)
39#elif defined(CONFIG_PAGE_SIZE_8KB) 39#elif defined(CONFIG_PAGE_SIZE_8KB)
40#define THREAD_SIZE_ORDER (1) 40#define THREAD_SIZE_ORDER (1)
41#elif defined(CONFIG_PAGE_SIZE_16KB)
42#define THREAD_SIZE_ORDER (0)
41#elif defined(CONFIG_PAGE_SIZE_64KB) 43#elif defined(CONFIG_PAGE_SIZE_64KB)
42#define THREAD_SIZE_ORDER (0) 44#define THREAD_SIZE_ORDER (0)
43#else 45#else
@@ -92,6 +94,8 @@ static inline struct thread_info *current_thread_info(void)
92 return ti; 94 return ti;
93} 95}
94 96
97#define __HAVE_ARCH_THREAD_INFO_ALLOCATOR
98
95/* thread information allocation */ 99/* thread information allocation */
96#ifdef CONFIG_DEBUG_STACK_USAGE 100#ifdef CONFIG_DEBUG_STACK_USAGE
97#define alloc_thread_info(ti) kzalloc(THREAD_SIZE, GFP_KERNEL) 101#define alloc_thread_info(ti) kzalloc(THREAD_SIZE, GFP_KERNEL)