--- zzzz-none-000/linux-4.4.271/arch/mips/include/asm/thread_info.h 2021-06-03 06:22:09.000000000 +0000 +++ dakota-7530ac-750/linux-4.4.271/arch/mips/include/asm/thread_info.h 2023-01-11 09:25:41.000000000 +0000 @@ -100,6 +100,11 @@ #define THREAD_SIZE_ORDER (0) #endif +#ifdef CONFIG_THREAD_SIZE_ORDER +#undef THREAD_SIZE_ORDER +#define THREAD_SIZE_ORDER (CONFIG_THREAD_SIZE_ORDER) +#endif + #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) #define THREAD_MASK (THREAD_SIZE - 1UL)