Skip to content

Commit

Permalink
uml: use get_free_pages to allocate kernel stacks
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
cfd-36 authored and Linus Torvalds committed Jul 16, 2007
1 parent 0a6d3a2 commit 8481221
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions include/asm-um/thread_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8481221

Please sign in to comment.