Commit e179e80
committed
sched: Introduce CONFIG_GROUP_SCHED_WEIGHT
sched_ext will soon add cgroup cpu.weigh support. The cgroup interface code
is currently gated behind CONFIG_FAIR_GROUP_SCHED. As the fair class and/or
SCX may implement the feature, put the interface code behind the new
CONFIG_CGROUP_SCHED_WEIGHT which is selected by CONFIG_FAIR_GROUP_SCHED.
This allows either sched class to enable the itnerface code without ading
more complex CONFIG tests.
When !CONFIG_FAIR_GROUP_SCHED, a dummy version of sched_group_set_shares()
is added to support later CONFIG_CGROUP_SCHED_WEIGHT &&
!CONFIG_FAIR_GROUP_SCHED builds.
No functional changes.
Signed-off-by: Tejun Heo <[email protected]>1 parent 41082c1 commit e179e80
3 files changed
+14
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1024 | 1024 | | |
1025 | 1025 | | |
1026 | 1026 | | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
1027 | 1030 | | |
1028 | 1031 | | |
1029 | 1032 | | |
| 1033 | + | |
1030 | 1034 | | |
1031 | 1035 | | |
1032 | 1036 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9193 | 9193 | | |
9194 | 9194 | | |
9195 | 9195 | | |
9196 | | - | |
| 9196 | + | |
9197 | 9197 | | |
9198 | 9198 | | |
9199 | 9199 | | |
| |||
9212 | 9212 | | |
9213 | 9213 | | |
9214 | 9214 | | |
| 9215 | + | |
9215 | 9216 | | |
9216 | 9217 | | |
9217 | 9218 | | |
| |||
9557 | 9558 | | |
9558 | 9559 | | |
9559 | 9560 | | |
9560 | | - | |
9561 | 9561 | | |
9562 | 9562 | | |
9563 | 9563 | | |
| |||
9585 | 9585 | | |
9586 | 9586 | | |
9587 | 9587 | | |
9588 | | - | |
| 9588 | + | |
9589 | 9589 | | |
9590 | 9590 | | |
9591 | 9591 | | |
| |||
9600 | 9600 | | |
9601 | 9601 | | |
9602 | 9602 | | |
9603 | | - | |
| 9603 | + | |
9604 | 9604 | | |
9605 | 9605 | | |
9606 | 9606 | | |
| |||
9710 | 9710 | | |
9711 | 9711 | | |
9712 | 9712 | | |
9713 | | - | |
| 9713 | + | |
9714 | 9714 | | |
9715 | 9715 | | |
9716 | 9716 | | |
| |||
9764 | 9764 | | |
9765 | 9765 | | |
9766 | 9766 | | |
9767 | | - | |
| 9767 | + | |
9768 | 9768 | | |
9769 | 9769 | | |
9770 | 9770 | | |
| |||
9824 | 9824 | | |
9825 | 9825 | | |
9826 | 9826 | | |
9827 | | - | |
| 9827 | + | |
9828 | 9828 | | |
9829 | 9829 | | |
9830 | 9830 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
483 | 483 | | |
484 | 484 | | |
485 | 485 | | |
486 | | - | |
| 486 | + | |
487 | 487 | | |
488 | 488 | | |
489 | 489 | | |
| |||
575 | 575 | | |
576 | 576 | | |
577 | 577 | | |
| 578 | + | |
| 579 | + | |
578 | 580 | | |
579 | 581 | | |
580 | 582 | | |
| |||
0 commit comments