twx-linux/kernel/sched
Shrikanth Hegde 0ada804832 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:37:37 +02:00
..
autogroup.c
autogroup.h
build_policy.c
build_utility.c
clock.c
completion.c
core_sched.c
core.c Revert "sched/core: Reduce cost of sched_move_task when config autogroup" 2025-03-28 21:59:56 +01:00
cpuacct.c
cpudeadline.c
cpudeadline.h
cpufreq_schedutil.c cpufreq: schedutil: Fix superfluous updates caused by need_freq_update 2025-02-08 09:51:53 +01:00
cpufreq.c
cpupri.c sched/rt: Fix live lock between select_fallback_rq() and RT push 2023-09-28 22:58:13 +02:00
cpupri.h
cputime.c sched/cputime: Fix mul_u64_u64_div_u64() precision for cputime 2024-08-14 13:58:47 +02:00
deadline.c sched/deadline: Use online cpus for validating runtime 2025-04-10 14:37:37 +02:00
debug.c sched/debug: Provide slice length for fair tasks 2025-03-22 12:50:40 -07:00
fair.c sched/fair: Fix potential memory corruption in child_cfs_rq_on_list 2025-03-13 12:58:32 +01:00
features.h sched/eevdf: Curb wakeup-preemption 2023-08-17 17:07:07 +02:00
idle.c sched/fair: Rename check_preempt_curr() to wakeup_preempt() 2024-12-14 20:00:18 +01:00
isolation.c sched/isolation: Fix boot crash when maxcpus < first housekeeping CPU 2024-06-12 11:11:24 +02:00
loadavg.c
Makefile
membarrier.c sched/membarrier: reduce the ability to hammer on sys_membarrier 2024-02-23 09:25:27 +01:00
pelt.c
pelt.h
psi.c sched: psi: fix bogus pressure spikes from aggregation race 2024-10-10 11:58:03 +02:00
rt.c sched: Unify runtime accounting across classes 2024-12-14 20:00:19 +01:00
sched-pelt.h
sched.h sched/deadline: Move bandwidth accounting into {en,de}queue_dl_entity 2024-12-14 20:00:19 +01:00
smp.h
stats.c profiling: remove profile=sleep support 2024-08-14 13:58:47 +02:00
stats.h sched: Move psi_account_irqtime() out of update_rq_clock_task() hotpath 2024-07-18 13:21:25 +02:00
stop_task.c sched: Unify runtime accounting across classes 2024-12-14 20:00:19 +01:00
swait.c
topology.c sched/topology: Rename 'DIE' domain to 'PKG' 2025-02-08 09:51:44 +01:00
wait_bit.c
wait.c