sst-linux/kernel/sched
Shrikanth Hegde e73917f9e0 sched/deadline: Use online cpus for validating runtime
[ Upstream commit 14672f059d83f591afb2ee1fff56858efe055e5a ]

The ftrace selftest reported a failure because writing -1 to
sched_rt_runtime_us returns -EBUSY. This happens when the possible
CPUs are different from active CPUs.

Active CPUs are part of one root domain, while remaining CPUs are part
of def_root_domain. Since active cpumask is being used, this results in
cpus=0 when a non active CPUs is used in the loop.

Fix it by looping over the online CPUs instead for validating the
bandwidth calculations.

Signed-off-by: Shrikanth Hegde <sshegde@linux.ibm.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Juri Lelli <juri.lelli@redhat.com>
Link: https://lore.kernel.org/r/20250306052954.452005-2-sshegde@linux.ibm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-04-10 14:33:39 +02:00
..
autogroup.c
autogroup.h
build_policy.c
build_utility.c
clock.c
completion.c
core_sched.c
core.c sched: Clarify wake_up_q()'s write to task->wake_q.next 2025-03-28 21:58:51 +01:00
cpuacct.c
cpudeadline.c
cpudeadline.h
cpufreq_schedutil.c cpufreq: schedutil: Fix superfluous updates caused by need_freq_update 2025-02-21 13:49:01 +01:00
cpufreq.c
cpupri.c
cpupri.h
cputime.c
deadline.c sched/deadline: Use online cpus for validating runtime 2025-04-10 14:33:39 +02:00
debug.c
fair.c sched/fair: Fix potential memory corruption in child_cfs_rq_on_list 2025-03-13 12:53:19 +01:00
features.h
idle.c
isolation.c
loadavg.c
Makefile
membarrier.c
pelt.c
pelt.h
psi.c
rt.c
sched-pelt.h
sched.h
smp.h
stats.c
stats.h sched/psi: Use task->psi_flags to clear in CPU migration 2025-02-21 13:48:54 +01:00
stop_task.c
swait.c
topology.c
wait_bit.c
wait.c