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)
committerTejun Heo <tj@kernel.org>
Mon, 27 Jan 2025 18:59:55 +0000 (08:59 -1000)
commit5f52bbf2f6e0997394cf9c449d44e1c80ff4282c
treed8e6ddcca0c855821aa4069cb47a7f23dd0817a9
parentd6f3e7d564b2309e1f17e709a70eca78d7ca2bb8
tools/sched_ext: Add helper to check task migration state

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