Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 302832
b: refs/heads/master
c: 2889f60
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner committed May 8, 2012
1 parent 7a10e3e commit 687d2da
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6c0a9fa62feb7e9fdefa9720bcc03040c9b0b311
refs/heads/master: 2889f60814e15dea644782597d897cdba943564f
6 changes: 6 additions & 0 deletions trunk/include/linux/thread_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ extern long do_no_restart_syscall(struct restart_block *parm);

#ifdef __KERNEL__

#ifdef CONFIG_DEBUG_STACK_USAGE
# define THREADINFO_GFP (GFP_KERNEL | __GFP_NOTRACK | __GFP_ZERO)
#else
# define THREADINFO_GFP (GFP_KERNEL | __GFP_NOTRACK)
#endif

/*
* flag set/clear/test wrappers
* - pass TIF_xxxx constants to these functions
Expand Down
8 changes: 2 additions & 6 deletions trunk/kernel/fork.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,8 @@ static struct kmem_cache *task_struct_cachep;
static struct thread_info *alloc_thread_info_node(struct task_struct *tsk,
int node)
{
#ifdef CONFIG_DEBUG_STACK_USAGE
gfp_t mask = GFP_KERNEL | __GFP_ZERO;
#else
gfp_t mask = GFP_KERNEL;
#endif
struct page *page = alloc_pages_node(node, mask, THREAD_SIZE_ORDER);
struct page *page = alloc_pages_node(node, THREADINFO_GFP,
THREAD_SIZE_ORDER);

return page ? page_address(page) : NULL;
}
Expand Down

0 comments on commit 687d2da

Please sign in to comment.