sched_ext: Minor cleanups in kernel/sched/ext.h
authorTejun Heo <tj@kernel.org>
Mon, 8 Jul 2024 19:39:48 +0000 (09:39 -1000)
committerTejun Heo <tj@kernel.org>
Mon, 8 Jul 2024 19:39:48 +0000 (09:39 -1000)
commit6ab228ecc3fd9e0e3cdda32e56e39faac0dc500f
treefaa23e48ef0d6a89711d07f09e3016225c5568da
parent9f391f94a1730232ad2760202755b2d9baf4688d
sched_ext: Minor cleanups in kernel/sched/ext.h

- scx_ops_cpu_preempt is only used in kernel/sched/ext.c and doesn't need to
  be global. Make it static.

- Relocate task_on_scx() so that the inline functions are located together.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: David Vernet <void@manifault.com>
kernel/sched/ext.c
kernel/sched/ext.h