--- zzzz-none-000/linux-4.4.271/arch/mips/include/asm/thread_info.h 2021-06-03 06:22:09.000000000 +0000 +++ hawkeye-5590-750/linux-4.4.271/arch/mips/include/asm/thread_info.h 2023-04-19 10:22:28.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)