diff options
author | Dietmar Eggemann <dietmar.eggemann@arm.com> | 2020-05-20 15:42:40 +0200 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2020-06-15 14:10:05 +0200 |
commit | fc9dc698472aa460a8b3b036d9b1d0b751f12f58 (patch) | |
tree | 168ab81c67176899e5b7d8529ad9c1c7e7256009 /kernel/sched/sched.h | |
parent | c81b89329933c6c0be809d4c0d2cb57c49153ee3 (diff) | |
download | linux-fc9dc698472aa460a8b3b036d9b1d0b751f12f58.tar.bz2 |
sched/deadline: Add dl_bw_capacity()
Capacity-aware SCHED_DEADLINE Admission Control (AC) needs root domain
(rd) CPU capacity sum.
Introduce dl_bw_capacity() which for a symmetric rd w/ a CPU capacity
of SCHED_CAPACITY_SCALE simply relies on dl_bw_cpus() to return #CPUs
multiplied by SCHED_CAPACITY_SCALE.
For an asymmetric rd or a CPU capacity < SCHED_CAPACITY_SCALE it
computes the CPU capacity sum over rd span and cpu_active_mask.
A 'XXX Fix:' comment was added to highlight that if 'rq->rd ==
def_root_domain' AC should be performed against the capacity of the
CPU the task is running on rather the rd CPU capacity sum. This
issue already exists w/o capacity awareness.
Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Juri Lelli <juri.lelli@redhat.com>
Link: https://lkml.kernel.org/r/20200520134243.19352-3-dietmar.eggemann@arm.com
Diffstat (limited to 'kernel/sched/sched.h')
0 files changed, 0 insertions, 0 deletions