diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2012-05-05 11:05:42 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2012-05-08 08:08:44 -0400 |
commit | 7b8fe0570a65486e77823d5fcec9998c2aae9970 (patch) | |
tree | 8023dadb0025eb25598c7ba27e5d7ac278a8eb32 /arch | |
parent | 0d15d74a1ead10673b5b1db66d4c90552769096c (diff) |
c6x: Use common threadinfo allocator
There is no functional difference. __get_free_pages() ends up calling
alloc_pages_node().
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Mark Salter <msalter@redhat.com>
Link: http://lkml.kernel.org/r/20120505150141.621728944@linutronix.de
Diffstat (limited to 'arch')
-rw-r--r-- | arch/c6x/include/asm/thread_info.h | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/arch/c6x/include/asm/thread_info.h b/arch/c6x/include/asm/thread_info.h index fd99148cda9d..1710bcbb8d09 100644 --- a/arch/c6x/include/asm/thread_info.h +++ b/arch/c6x/include/asm/thread_info.h | |||
@@ -20,11 +20,11 @@ | |||
20 | #ifdef CONFIG_4KSTACKS | 20 | #ifdef CONFIG_4KSTACKS |
21 | #define THREAD_SIZE 4096 | 21 | #define THREAD_SIZE 4096 |
22 | #define THREAD_SHIFT 12 | 22 | #define THREAD_SHIFT 12 |
23 | #define THREAD_ORDER 0 | 23 | #define THREAD_SIZE_ORDER 0 |
24 | #else | 24 | #else |
25 | #define THREAD_SIZE 8192 | 25 | #define THREAD_SIZE 8192 |
26 | #define THREAD_SHIFT 13 | 26 | #define THREAD_SHIFT 13 |
27 | #define THREAD_ORDER 1 | 27 | #define THREAD_SIZE_ORDER 1 |
28 | #endif | 28 | #endif |
29 | 29 | ||
30 | #define THREAD_START_SP (THREAD_SIZE - 8) | 30 | #define THREAD_START_SP (THREAD_SIZE - 8) |
@@ -80,19 +80,6 @@ struct thread_info *current_thread_info(void) | |||
80 | return ti; | 80 | return ti; |
81 | } | 81 | } |
82 | 82 | ||
83 | #define __HAVE_ARCH_THREAD_INFO_ALLOCATOR | ||
84 | |||
85 | /* thread information allocation */ | ||
86 | #ifdef CONFIG_DEBUG_STACK_USAGE | ||
87 | #define THREAD_FLAGS (GFP_KERNEL | __GFP_NOTRACK | __GFP_ZERO) | ||
88 | #else | ||
89 | #define THREAD_FLAGS (GFP_KERNEL | __GFP_NOTRACK) | ||
90 | #endif | ||
91 | |||
92 | #define alloc_thread_info_node(tsk, node) \ | ||
93 | ((struct thread_info *)__get_free_pages(THREAD_FLAGS, THREAD_ORDER)) | ||
94 | |||
95 | #define free_thread_info(ti) free_pages((unsigned long) (ti), THREAD_ORDER) | ||
96 | #define get_thread_info(ti) get_task_struct((ti)->task) | 83 | #define get_thread_info(ti) get_task_struct((ti)->task) |
97 | #define put_thread_info(ti) put_task_struct((ti)->task) | 84 | #define put_thread_info(ti) put_task_struct((ti)->task) |
98 | #endif /* __ASSEMBLY__ */ | 85 | #endif /* __ASSEMBLY__ */ |