]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/sched_ext: Fix exit selftest hang on UP
authorAndrea Righi <arighi@nvidia.com>
Tue, 1 Jul 2025 06:08:45 +0000 (08:08 +0200)
committerTejun Heo <tj@kernel.org>
Thu, 3 Jul 2025 16:44:13 +0000 (06:44 -1000)
commit7980ad7e4ca80f6c255f4473fba82a475342035a
treed1ba97b3d1c8a364727a663aaa624512390a967e
parent33796b91871ad4010c8188372dd1faf97cf0f1c0
selftests/sched_ext: Fix exit selftest hang on UP

On single-CPU systems, ops.select_cpu() is never called, causing the
EXIT_SELECT_CPU test case to wait indefinitely.

Avoid the stall by skipping this specific sub-test when only one CPU is
available.

Reported-by: Phil Auld <pauld@redhat.com>
Fixes: a5db7817af780 ("sched_ext: Add selftests")
Signed-off-by: Andrea Righi <arighi@nvidia.com>
Reviewed-by: Phil Auld <pauld@redhat.com>
Tested-by: Phil Auld <pauld@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
tools/testing/selftests/sched_ext/exit.c