--- linux-2.6.32/arch/mips/include/asm/thread_info.h.orig	2011-01-04 13:25:37.000000000 +0100
+++ linux-2.6.32/arch/mips/include/asm/thread_info.h	2011-05-09 11:16:21.891118810 +0200
@@ -88,6 +88,7 @@
 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER)
 #define THREAD_MASK (THREAD_SIZE - 1UL)
 
+#if 0
 #define __HAVE_ARCH_THREAD_INFO_ALLOCATOR
 
 #ifdef CONFIG_DEBUG_STACK_USAGE
@@ -97,6 +98,7 @@
 #endif
 
 #define free_thread_info(info) kfree(info)
+#endif
 
 #endif /* !__ASSEMBLY__ */
 
