sched/core: Simplify sched_init()
authorWei Yang <richard.weiyang@gmail.com>
Thu, 23 Apr 2020 21:44:43 +0000 (21:44 +0000)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 30 Apr 2020 18:14:42 +0000 (20:14 +0200)
commitb1d1779e5ef7a60b192b61fd97201f322e1e9303
tree8785d35fdcd991fe0c3db1077a08ade462ab3892
parent12ac6782a40ad7636b6ef45680741825b64ab221
sched/core: Simplify sched_init()

Currently root_task_group.shares and cfs_bandwidth are initialized for
each online cpu, which not necessary.

Let's take it out to do it only once.

Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200423214443.29994-1-richard.weiyang@gmail.com
kernel/sched/core.c