aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2012-05-05 11:05:46 -0400
committerThomas Gleixner <tglx@linutronix.de>2012-05-08 08:08:46 -0400
commitc4e26890ff4cb4e85969b1e8565af4b046ce03b8 (patch)
treea8fa13224812bf27b4d8b3dc26e99efe635fd4ac /arch
parentdf9a7b9b5d1a5ef8cd3474d0cea2c6428542e288 (diff)
score: Use common threadinfo allocator
No point in using kmalloc for allocating 2 pages. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Lennox Wu <lennox.wu@gmail.com> Link: http://lkml.kernel.org/r/20120505150142.123383955@linutronix.de
Diffstat (limited to 'arch')
-rw-r--r--arch/score/include/asm/thread_info.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/arch/score/include/asm/thread_info.h b/arch/score/include/asm/thread_info.h
index 2205c62284db..a18006e97f1c 100644
--- a/arch/score/include/asm/thread_info.h
+++ b/arch/score/include/asm/thread_info.h
@@ -11,10 +11,9 @@
11#include <linux/const.h> 11#include <linux/const.h>
12 12
13/* thread information allocation */ 13/* thread information allocation */
14#define THREAD_SIZE_ORDER (1) 14#define THREAD_SIZE_ORDER (1)
15#define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) 15#define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER)
16#define THREAD_MASK (THREAD_SIZE - _AC(1,UL)) 16#define THREAD_MASK (THREAD_SIZE - _AC(1,UL))
17#define __HAVE_ARCH_THREAD_INFO_ALLOCATOR
18 17
19#ifndef __ASSEMBLY__ 18#ifndef __ASSEMBLY__
20 19
@@ -71,9 +70,6 @@ struct thread_info {
71register struct thread_info *__current_thread_info __asm__("r28"); 70register struct thread_info *__current_thread_info __asm__("r28");
72#define current_thread_info() __current_thread_info 71#define current_thread_info() __current_thread_info
73 72
74#define alloc_thread_info_node(tsk, node) kmalloc_node(THREAD_SIZE, GFP_KERNEL, node)
75#define free_thread_info(info) kfree(info)
76
77#endif /* !__ASSEMBLY__ */ 73#endif /* !__ASSEMBLY__ */
78 74
79#define PREEMPT_ACTIVE 0x10000000 75#define PREEMPT_ACTIVE 0x10000000