diff options
author | Jeff Dike <jdike@addtoit.com> | 2007-07-16 02:38:48 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-16 12:05:38 -0400 |
commit | 84812217e395f5272eac36856c0a2415d61fe139 (patch) | |
tree | 703a67a6f81c51bc7455fe36565a34722e2f9e26 | |
parent | 0a6d3a2a3813e7b25267366cfbf9a4a4698dd1c2 (diff) |
uml: use get_free_pages to allocate kernel stacks
For some reason, I was using kmalloc instead of get_free_pages for kernel
stacks.
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | include/asm-um/thread_info.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/asm-um/thread_info.h b/include/asm-um/thread_info.h index 18a13ba74605..07aa4e50e4d0 100644 --- a/include/asm-um/thread_info.h +++ b/include/asm-um/thread_info.h | |||
@@ -54,8 +54,10 @@ static inline struct thread_info *current_thread_info(void) | |||
54 | 54 | ||
55 | /* thread information allocation */ | 55 | /* thread information allocation */ |
56 | #define alloc_thread_info(tsk) \ | 56 | #define alloc_thread_info(tsk) \ |
57 | ((struct thread_info *) kmalloc(THREAD_SIZE, GFP_KERNEL)) | 57 | ((struct thread_info *) __get_free_pages(GFP_KERNEL, \ |
58 | #define free_thread_info(ti) kfree(ti) | 58 | CONFIG_KERNEL_STACK_ORDER)) |
59 | #define free_thread_info(ti) \ | ||
60 | free_pages((unsigned long)(ti),CONFIG_KERNEL_STACK_ORDER) | ||
59 | 61 | ||
60 | #endif | 62 | #endif |
61 | 63 | ||