lkml.org 
[lkml]   [2012]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch 14/18] 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>
---
arch/score/include/asm/thread_info.h | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
Index: tip/arch/score/include/asm/thread_info.h
===================================================================
--- tip.orig/arch/score/include/asm/thread_info.h
+++ tip/arch/score/include/asm/thread_info.h
@@ -11,10 +11,9 @@
#include <linux/const.h>

/* thread information allocation */
-#define THREAD_SIZE_ORDER (1)
-#define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER)
-#define THREAD_MASK (THREAD_SIZE - _AC(1,UL))
-#define __HAVE_ARCH_THREAD_INFO_ALLOCATOR
+#define THREAD_SIZE_ORDER (1)
+#define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER)
+#define THREAD_MASK (THREAD_SIZE - _AC(1,UL))

#ifndef __ASSEMBLY__

@@ -71,9 +70,6 @@ struct thread_info {
register struct thread_info *__current_thread_info __asm__("r28");
#define current_thread_info() __current_thread_info

-#define alloc_thread_info_node(tsk, node) kmalloc_node(THREAD_SIZE, GFP_KERNEL, node)
-#define free_thread_info(info) kfree(info)
-
#endif /* !__ASSEMBLY__ */

#define PREEMPT_ACTIVE 0x10000000



\
 
 \ /
  Last update: 2012-05-05 17:21    [W:0.164 / U:0.304 seconds]
©2003-2014 Jasper Spaans. Advertise on this site