[PATCH openEuler-1.0-LTS 1/6] sched: Reorganize the code of dynamic affnity and smart grid