sched_ext: Move scx_buildin_idle_enabled check to scx_bpf_select_cpu_dfl()
authorTejun Heo <tj@kernel.org>
Thu, 10 Oct 2024 21:41:44 +0000 (11:41 -1000)
committerTejun Heo <tj@kernel.org>
Thu, 10 Oct 2024 21:41:44 +0000 (11:41 -1000)
commitcc3e1caca998e445a030253d2dc42a0db6f5af30
tree3871ff77afc2d7962a1452b662c6cac79e515eab
parent3fdb9ebcec10a91e7825b95840c5a627dabcbca7
sched_ext: Move scx_buildin_idle_enabled check to scx_bpf_select_cpu_dfl()

Move the sanity check from the inner function scx_select_cpu_dfl() to the
exported kfunc scx_bpf_select_cpu_dfl(). This doesn't cause behavior
differences and will allow using scx_select_cpu_dfl() in bypass mode
regardless of scx_builtin_idle_enabled.

Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/sched/ext.c