Commit b1d1779
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.com1 parent 12ac678 commit b1d1779
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6597 | 6597 | | |
6598 | 6598 | | |
6599 | 6599 | | |
| 6600 | + | |
| 6601 | + | |
6600 | 6602 | | |
6601 | 6603 | | |
6602 | 6604 | | |
| |||
6649 | 6651 | | |
6650 | 6652 | | |
6651 | 6653 | | |
6652 | | - | |
6653 | 6654 | | |
6654 | 6655 | | |
6655 | 6656 | | |
| |||
6671 | 6672 | | |
6672 | 6673 | | |
6673 | 6674 | | |
6674 | | - | |
6675 | 6675 | | |
6676 | 6676 | | |
6677 | 6677 | | |
| |||
0 commit comments