projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe84405
)
mips: Use common threadinfo allocator
author
Thomas Gleixner
<tglx@linutronix.de>
Sat, 5 May 2012 15:05:44 +0000
(15:05 +0000)
committer
Thomas Gleixner
<tglx@linutronix.de>
Tue, 8 May 2012 12:08:45 +0000
(14:08 +0200)
No point in using kmalloc for allocating 0, 1 resp. 2 pages for
threadinfo.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Ralf Baechle <ralf@linux-mips.org>
Link:
http://lkml.kernel.org/r/20120505150141.936950979@linutronix.de
arch/mips/include/asm/thread_info.h
patch
|
blob
|
history
diff --git
a/arch/mips/include/asm/thread_info.h
b/arch/mips/include/asm/thread_info.h
index 0d85d8e440c555b584fa51b1082e603e1b542b4e..e2eca7d1059800e22704b467ab4f94f955df27c0 100644
(file)
--- a/
arch/mips/include/asm/thread_info.h
+++ b/
arch/mips/include/asm/thread_info.h
@@
-85,18
+85,6
@@
register struct thread_info *__current_thread_info __asm__("$28");
#define STACK_WARN (THREAD_SIZE / 8)
-#define __HAVE_ARCH_THREAD_INFO_ALLOCATOR
-
-#ifdef CONFIG_DEBUG_STACK_USAGE
-#define alloc_thread_info_node(tsk, node) \
- kzalloc_node(THREAD_SIZE, GFP_KERNEL, node)
-#else
-#define alloc_thread_info_node(tsk, node) \
- kmalloc_node(THREAD_SIZE, GFP_KERNEL, node)
-#endif
-
-#define free_thread_info(info) kfree(info)
-
#endif /* !__ASSEMBLY__ */
#define PREEMPT_ACTIVE 0x10000000