Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit cb1ec8a9 authored by Morten Rasmussen's avatar Morten Rasmussen Committed by Satya Durga Srinivasu Prabhala
Browse files

FROMLIST: sched: Add sched_group per-cpu max capacity



The current sg->min_capacity tracks the lowest per-cpu compute capacity
available in the sched_group when rt/irq pressure is taken into account.
Minimum capacity isn't the ideal metric for tracking if a sched_group
needs offloading to another sched_group for some scenarios, e.g. a
sched_group with multiple cpus if only one is under heavy pressure.
Tracking maximum capacity isn't perfect either but a better choice for
some situations as it indicates that the sched_group definitely compute
capacity constrained either due to rt/irq pressure on all cpus or
asymmetric cpu capacities (e.g. big.LITTLE).

cc: Ingo Molnar <mingo@redhat.com>
cc: Peter Zijlstra <peterz@infradead.org>

Change-Id: Ic96c914f7f969b8aa353cfa3ad287e0e628b1793
Signed-off-by: default avatarMorten Rasmussen <morten.rasmussen@arm.com>
[from https://lore.kernel.org/lkml/1530699470-29808-4-git-send-email-morten.rasmussen@arm.com/

]
[backported - some of this is already present in android-4.14]
Signed-off-by: default avatarValentin Schneider <valentin.schneider@arm.com>
Signed-off-by: default avatarChris Redpath <chris.redpath@arm.com>
Git-commit: a07aeacb
Git-repo: https://android.googlesource.com/kernel/common/


[pujag@codeaurora.org: replace capacity_margin with
sched_capacity_margin_up]
Signed-off-by: default avatarPuja Gupta <pujag@codeaurora.org>
parent 2cb0176a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment