diff options
| author | David Mosberger <davidm@napali.hpl.hp.com> | 2003-06-04 08:35:36 -0700 |
|---|---|---|
| committer | David Mosberger <davidm@tiger.hpl.hp.com> | 2003-06-04 08:35:36 -0700 |
| commit | 7df5cefd63cf77fe9a7ee3b78113452ed07653e6 (patch) | |
| tree | fcbc534848c4ec67669d269d4116c7240b0dfc9d /include/asm-alpha | |
| parent | d62b7983996d57d3ce3f0e45ea7b0d6b7030005c (diff) | |
[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.
Diffstat (limited to 'include/asm-alpha')
| -rw-r--r-- | include/asm-alpha/thread_info.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
