]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tools/sched_ext: Add helper to check task migration state
authorAndrea Righi <arighi@nvidia.com>
Sat, 25 Jan 2025 17:14:12 +0000 (18:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Mar 2025 19:54:28 +0000 (12:54 -0700)
commitee06d5c81041ead5269a3c17595211d3e7c10183
tree831e2800b8a853bbab7dc78783dd049a982cbf12
parent46db29a2c8b1bbc55f01e5c8b801ae5b4ead4c6a
tools/sched_ext: Add helper to check task migration state

commit 5f52bbf2f6e0997394cf9c449d44e1c80ff4282c upstream.

Introduce a new helper for BPF schedulers to determine whether a task
can migrate or not (supporting both SMP and UP systems).

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/sched_ext/include/scx/common.bpf.h