Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 79796
b: refs/heads/master
c: 6ea8bad
h: refs/heads/master
v: v3
  • Loading branch information
clameter@sgi.com authored and Ingo Molnar committed Jan 30, 2008
1 parent d59a56b commit 5bd1d15
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 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: ec12fa5c80126b252ebcb474d12c832ec4647daa
refs/heads/master: 6ea8bad1c06c8ccde381f1c848afe6a245bb33b5
16 changes: 5 additions & 11 deletions trunk/include/asm-x86/thread_info_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,20 +74,14 @@ static inline struct thread_info *stack_thread_info(void)

/* thread information allocation */
#ifdef CONFIG_DEBUG_STACK_USAGE
#define alloc_thread_info(tsk) \
({ \
struct thread_info *ret; \
\
ret = ((struct thread_info *) __get_free_pages(GFP_KERNEL,THREAD_ORDER)); \
if (ret) \
memset(ret, 0, THREAD_SIZE); \
ret; \
})
#define THREAD_FLAGS (GFP_KERNEL | __GFP_ZERO)
#else
#define alloc_thread_info(tsk) \
((struct thread_info *) __get_free_pages(GFP_KERNEL,THREAD_ORDER))
#define THREAD_FLAGS GFP_KERNEL
#endif

#define alloc_thread_info(tsk) \
((struct thread_info *) __get_free_pages(THREAD_FLAGS, THREAD_ORDER))

#define free_thread_info(ti) free_pages((unsigned long) (ti), THREAD_ORDER)

#else /* !__ASSEMBLY__ */
Expand Down

0 comments on commit 5bd1d15

Please sign in to comment.