Commit ba65b4e
NVIDIA: VR: SAUCE: sched/fair: Add SIS_UTIL support to select_idle_capacity()
BugLink: https://bugs.launchpad.net/bugs/2150671
Add to select_idle_capacity() the same SIS_UTIL-controlled idle-scan
mechanism, already used by select_idle_cpu(): when sched_feat(SIS_UTIL)
is enabled and the LLC domain has sched_domain_shared data, derive the
per-attempt scan limit from sd->shared->nr_idle_scan.
That bounds the walk on large LLCs and allows an early return once the
scan limit is reached, if we already picked a sufficiently strong
idle-core candidate (best_fits == ASYM_IDLE_CORE_UCLAMP_MISFIT).
Co-developed-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: K Prateek Nayak <kprateek.nayak@amd.com>
(cherry picked from https://lore.kernel.org/all/20260428051720.3180182-1-arighi@nvidia.com)
Signed-off-by: Andrea Righi <arighi@nvidia.com>1 parent fea7499 commit ba65b4e
1 file changed
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7791 | 7791 | | |
7792 | 7792 | | |
7793 | 7793 | | |
| 7794 | + | |
7794 | 7795 | | |
7795 | 7796 | | |
7796 | 7797 | | |
| |||
7799 | 7800 | | |
7800 | 7801 | | |
7801 | 7802 | | |
| 7803 | + | |
| 7804 | + | |
| 7805 | + | |
| 7806 | + | |
| 7807 | + | |
| 7808 | + | |
| 7809 | + | |
| 7810 | + | |
| 7811 | + | |
| 7812 | + | |
| 7813 | + | |
7802 | 7814 | | |
7803 | 7815 | | |
7804 | 7816 | | |
7805 | 7817 | | |
| 7818 | + | |
| 7819 | + | |
| 7820 | + | |
| 7821 | + | |
| 7822 | + | |
| 7823 | + | |
| 7824 | + | |
7806 | 7825 | | |
7807 | 7826 | | |
7808 | 7827 | | |
| |||
0 commit comments