aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/include/asm/thread_info.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ia64/include/asm/thread_info.h')
-rw-r--r--arch/ia64/include/asm/thread_info.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/ia64/include/asm/thread_info.h b/arch/ia64/include/asm/thread_info.h
index b6a5ba2aca34..342004bbefe7 100644
--- a/arch/ia64/include/asm/thread_info.h
+++ b/arch/ia64/include/asm/thread_info.h
@@ -84,7 +84,14 @@ struct thread_info {
84#define end_of_stack(p) (unsigned long *)((void *)(p) + IA64_RBS_OFFSET) 84#define end_of_stack(p) (unsigned long *)((void *)(p) + IA64_RBS_OFFSET)
85 85
86#define __HAVE_ARCH_TASK_STRUCT_ALLOCATOR 86#define __HAVE_ARCH_TASK_STRUCT_ALLOCATOR
87#define alloc_task_struct() ((struct task_struct *)__get_free_pages(GFP_KERNEL | __GFP_COMP, KERNEL_STACK_SIZE_ORDER)) 87#define alloc_task_struct_node(node) \
88({ \
89 struct page *page = alloc_pages_node(node, GFP_KERNEL | __GFP_COMP, \
90 KERNEL_STACK_SIZE_ORDER); \
91 struct task_struct *ret = page ? page_address(page) : NULL; \
92 \
93 ret;
94})
88#define free_task_struct(tsk) free_pages((unsigned long) (tsk), KERNEL_STACK_SIZE_ORDER) 95#define free_task_struct(tsk) free_pages((unsigned long) (tsk), KERNEL_STACK_SIZE_ORDER)
89 96
90#endif /* !__ASSEMBLY */ 97#endif /* !__ASSEMBLY */