--- zzzz-none-000/linux-4.4.60/kernel/sched/sched.h 2017-04-08 07:53:53.000000000 +0000 +++ scorpion-7490-727/linux-4.4.60/kernel/sched/sched.h 2021-02-04 17:41:59.000000000 +0000 @@ -963,7 +963,11 @@ * per-task data have been completed by this moment. */ smp_wmb(); +#ifdef CONFIG_THREAD_INFO_IN_TASK + p->cpu = cpu; +#else task_thread_info(p)->cpu = cpu; +#endif p->wake_cpu = cpu; #endif }