X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fasm-frv%2Fthread_info.h;h=b7ac6bf2844c395c3179d733102e13ca0e8001fa;hb=82248a5e92793014d156a12dbcbba633794ce9f8;hp=cc5433e78b5216dfb5560f6ae57b7b4417cf7b95;hpb=0d6caa1795090bd22ede96b84daa4600b63eee37;p=linux-2.6 diff --git a/include/asm-frv/thread_info.h b/include/asm-frv/thread_info.h index cc5433e78b..b7ac6bf284 100644 --- a/include/asm-frv/thread_info.h +++ b/include/asm-frv/thread_info.h @@ -82,15 +82,16 @@ register struct thread_info *__current_thread_info asm("gr15"); #define current_thread_info() ({ __current_thread_info; }) +#define __HAVE_ARCH_THREAD_INFO_ALLOCATOR + /* thread information allocation */ #ifdef CONFIG_DEBUG_STACK_USAGE #define alloc_thread_info(tsk) \ ({ \ struct thread_info *ret; \ \ - ret = kmalloc(THREAD_SIZE, GFP_KERNEL); \ - if (ret) \ - memset(ret, 0, THREAD_SIZE); \ + ret = kzalloc(THREAD_SIZE, GFP_KERNEL); \ + \ ret; \ }) #else