Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=84812217e395f5272eac36856c0a2415d61fe139 Commit: 84812217e395f5272eac36856c0a2415d61fe139 Parent: 0a6d3a2a3813e7b25267366cfbf9a4a4698dd1c2 Author: Jeff Dike <[EMAIL PROTECTED]> AuthorDate: Sun Jul 15 23:38:48 2007 -0700 Committer: Linus Torvalds <[EMAIL PROTECTED]> CommitDate: Mon Jul 16 09:05:38 2007 -0700
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 <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]> --- 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 18a13ba..07aa4e5 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) /* thread information allocation */ #define alloc_thread_info(tsk) \ - ((struct thread_info *) kmalloc(THREAD_SIZE, GFP_KERNEL)) -#define free_thread_info(ti) kfree(ti) + ((struct thread_info *) __get_free_pages(GFP_KERNEL, \ + CONFIG_KERNEL_STACK_ORDER)) +#define free_thread_info(ti) \ + free_pages((unsigned long)(ti),CONFIG_KERNEL_STACK_ORDER) #endif - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html