+18
−1
Loading
sched/dynamic_affinity: Calculate cpu capacity in real time when realtime tasks are running on this cpu hulk inclusion category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/IBEBAG -------------------------------- The task_rq selection of dynamic affinity use cpu capacity to determine select_cpus range. When realtime tasks are running on the cpu all the time, cfs tasks and the thread of softirq is suppressed, and the cpu capacity is not updated in time. As a result, the select_cpus range is always selected for preferred_cpus. then cfs task will never be able to run because realtime tasks has been running. Therefore, if realtime tasks is running during the task_rq selection of dynamic affinity, the cpu capacity should be calculated to solve such a problem. Fixes: 70a232a5 ("sched: Adjust wakeup cpu range according CPU util dynamicly") Signed-off-by:He Yujie <coka.heyujie@huawei.com>