From 7df5cefd63cf77fe9a7ee3b78113452ed07653e6 Mon Sep 17 00:00:00 2001 From: David Mosberger Date: Wed, 4 Jun 2003 08:35:36 -0700 Subject: [PATCH] allow thread_info to be allocated as part of task_struct This re-organizes the thread info allocations a bit, so that architectures like ia64 that want to allocate the thread_info structure as part of the task structure allocation can do so. The bulk of the patch is adding the "tsk" information to the thread info allocator (ignored by all non-ia64 architectures), and switching the order of the allocators to make this all possible. --- include/asm-alpha/thread_info.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/asm-alpha') diff --git a/include/asm-alpha/thread_info.h b/include/asm-alpha/thread_info.h index f798b77816c9..1f19c2add410 100644 --- a/include/asm-alpha/thread_info.h +++ b/include/asm-alpha/thread_info.h @@ -51,7 +51,7 @@ register struct thread_info *__current_thread_info __asm__("$8"); /* Thread information allocation. */ #define THREAD_SIZE (2*PAGE_SIZE) -#define alloc_thread_info() \ +#define alloc_thread_info(tsk) \ ((struct thread_info *) __get_free_pages(GFP_KERNEL,1)) #define free_thread_info(ti) free_pages((unsigned long) (ti), 1) #define get_thread_info(ti) get_task_struct((ti)->task) -- cgit v1.2.3