diff options
author | Dietmar Eggemann <dietmar.eggemann@arm.com> | 2022-07-29 13:13:04 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2022-08-02 12:32:45 +0200 |
commit | 6092478bcbf4021d3c52144bd456378de043fe58 (patch) | |
tree | 6904a97e65ba40022e0933bafa88a295cc52f5a6 /kernel/sched/idle.c | |
parent | 740cf8a760b73e8375bfb4bedcbe9746183350f9 (diff) |
sched/deadline: Make dl_cpuset_cpumask_can_shrink() capacity-aware
dl_cpuset_cpumask_can_shrink() is used to validate whether there is
still enough CPU capacity for DL tasks in the reduced cpuset.
Currently it still operates on `# remaining CPUs in the cpuset` (1).
Change this to use the already capacity-aware DL admission control
__dl_overflow() for the `cpumask can shrink` test.
dl_b->bw = sched_rt_period << BW_SHIFT / sched_rt_period
dl_b->bw * (1) >= currently allocated bandwidth in root_domain (rd)
Replace (1) w/ `\Sum CPU capacity in rd >> SCHED_CAPACITY_SHIFT`
Adapt __dl_bw_capacity() to take a cpumask instead of a CPU number
argument so that `rd->span` and `cpumask of the reduced cpuset` can
be used here.
Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20220729111305.1275158-3-dietmar.eggemann@arm.com
Diffstat (limited to 'kernel/sched/idle.c')
0 files changed, 0 insertions, 0 deletions