mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 09:50:04 +00:00
MIPS: Cleanup CONFIG_DEBUG_STACK_USAGE version of alloc_thread_info.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
067f3290f7
commit
962a9dd47e
1 changed files with 1 additions and 8 deletions
|
@ -86,14 +86,7 @@ register struct thread_info *__current_thread_info __asm__("$28");
|
||||||
#define __HAVE_ARCH_THREAD_INFO_ALLOCATOR
|
#define __HAVE_ARCH_THREAD_INFO_ALLOCATOR
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_STACK_USAGE
|
#ifdef CONFIG_DEBUG_STACK_USAGE
|
||||||
#define alloc_thread_info(tsk) \
|
#define alloc_thread_info(tsk) kzalloc(THREAD_SIZE, GFP_KERNEL)
|
||||||
({ \
|
|
||||||
struct thread_info *ret; \
|
|
||||||
\
|
|
||||||
ret = kzalloc(THREAD_SIZE, GFP_KERNEL); \
|
|
||||||
\
|
|
||||||
ret; \
|
|
||||||
})
|
|
||||||
#else
|
#else
|
||||||
#define alloc_thread_info(tsk) kmalloc(THREAD_SIZE, GFP_KERNEL)
|
#define alloc_thread_info(tsk) kmalloc(THREAD_SIZE, GFP_KERNEL)
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue