]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sched_ext: selftests/dsp_local_on: Fix selftest on UP systems
authorAndrea Righi <arighi@nvidia.com>
Sat, 25 Jan 2025 09:36:07 +0000 (10:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Mar 2025 19:54:28 +0000 (12:54 -0700)
commit46db29a2c8b1bbc55f01e5c8b801ae5b4ead4c6a
tree1dd613ce4522d1bd60e1bdff6c3ee83bfdd9cbbf
parent9d9d87e44dd7a5708d159ad1fab467ad79050e30
sched_ext: selftests/dsp_local_on: Fix selftest on UP systems

commit 3c7d51b0d29954c40ea3a097e0ec7884b4344331 upstream.

In UP systems p->migration_disabled is not available. Fix this by using
the portable helper is_migration_disabled(p).

Fixes: e9fe182772dc ("sched_ext: selftests/dsp_local_on: Fix sporadic failures")
Signed-off-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/sched_ext/dsp_local_on.bpf.c