--- zzzz-none-000/linux-2.6.28.10/arch/arm/include/asm/thread_info.h 2009-05-02 18:54:43.000000000 +0000 +++ puma5-6360-529/linux-2.6.28.10/arch/arm/include/asm/thread_info.h 2010-03-25 13:19:24.000000000 +0000 @@ -15,8 +15,9 @@ #include #include -#define THREAD_SIZE_ORDER 1 -#define THREAD_SIZE 8192 +#define THREAD_SIZE_ORDER CONFIG_THREAD_SIZE_ORDER +#define THREAD_SIZE (1 << (PAGE_SHIFT + THREAD_SIZE_ORDER)) +#define THREAD_HALF_SIZE (1 << (PAGE_SHIFT + THREAD_SIZE_ORDER - 1)) #define THREAD_START_SP (THREAD_SIZE - 8) #ifndef __ASSEMBLY__ @@ -149,5 +150,13 @@ */ #define _TIF_WORK_MASK 0x000000ff +#ifndef __ASSEMBLY__ +#define __HAVE_ARCH_THREAD_INFO_ALLOCATOR + +void thread_info_cache_init(void); +extern struct thread_info *alloc_thread_info(struct task_struct *tsk); +extern void free_thread_info(struct thread_info *ti); +#endif + #endif /* __KERNEL__ */ #endif /* __ASM_ARM_THREAD_INFO_H */