diff options
| author | Shrikanth Hegde <[email protected]> | 2025-03-06 05:29:53 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2025-03-06 09:21:31 +0000 |
| commit | 14672f059d83f591afb2ee1fff56858efe055e5a (patch) | |
| tree | 99ca9727bd36f6eb0194f53dc8fd03715d34d283 /tools/testing/selftests/kvm/x86/nested_exceptions_test.c | |
| parent | sched/fair: Fix potential memory corruption in child_cfs_rq_on_list (diff) | |
| download | kernel-14672f059d83f591afb2ee1fff56858efe055e5a.tar.gz kernel-14672f059d83f591afb2ee1fff56858efe055e5a.zip | |
sched/deadline: Use online cpus for validating runtime
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 <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Reviewed-by: Juri Lelli <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/testing/selftests/kvm/x86/nested_exceptions_test.c')
0 files changed, 0 insertions, 0 deletions
