Commit dc05051d authored by Andrea Righi's avatar Andrea Righi Committed by Greg Kroah-Hartman
Browse files

selftests/sched_ext: Fix exit selftest hang on UP



[ Upstream commit 7980ad7e ]

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: default avatarPhil Auld <pauld@redhat.com>
Fixes: a5db7817 ("sched_ext: Add selftests")
Signed-off-by: default avatarAndrea Righi <arighi@nvidia.com>
Reviewed-by: default avatarPhil Auld <pauld@redhat.com>
Tested-by: default avatarPhil Auld <pauld@redhat.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 6952aeac
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment