--- zzzz-none-000/linux-4.4.60/arch/mips/include/asm/thread_info.h 2017-04-08 07:53:53.000000000 +0000 +++ scorpion-7490-727/linux-4.4.60/arch/mips/include/asm/thread_info.h 2021-02-04 17:41:59.000000000 +0000 @@ -82,6 +82,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)