[next,0/2] sched: sched_fork() optimizations

Message ID 20221031125113.72980-1-zhangqiao22@huawei.com
Headers
Series sched: sched_fork() optimizations |

Message

Zhang Qiao Oct. 31, 2022, 12:51 p.m. UTC
  sched_fork() use the current cpu init the new task's vruntime,
but the new task maybe not run on this cpu. so this patchset will
fix the problem.

Zhang Qiao (2):
  sched: Init new task's vruntime after select cpu
  sched: Fix sched_child_runs_first

 kernel/sched/core.c |  7 ++++++-
 kernel/sched/fair.c | 11 ++++-------
 2 files changed, 10 insertions(+), 8 deletions(-)