]> git.ipfire.org Git - thirdparty/linux.git/commit
sched_ext: Move shared helpers from ext.c into internal.h and cid.h
authorTejun Heo <tj@kernel.org>
Mon, 22 Jun 2026 17:29:39 +0000 (07:29 -1000)
committerTejun Heo <tj@kernel.org>
Mon, 22 Jun 2026 20:41:34 +0000 (10:41 -1000)
commit4437ad129cf5b37c00a5bc9fa5989d1da4d64d07
treea69f00dce59f6d66e1a621d90d113c8e1b38543a
parent3cd1f76be638b7386201171e7bb4c88095774dd5
sched_ext: Move shared helpers from ext.c into internal.h and cid.h

idle.c and cid.c are included into build_policy.c together with ext.c and
use helpers that ext.c defines. Because the helpers live in ext.c, the two
files can not parse as standalone units and clangd reports errors in them.

Move the helpers to the headers they belong to. The op-dispatch macros and
helpers plus scx_parent() to internal.h, and scx_cpu_arg()/scx_cpu_ret() to
cid.h. No functional change. idle.c and cid.c now parse clean standalone.

Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Andrea Righi <arighi@nvidia.com>
kernel/sched/ext/cid.h
kernel/sched/ext/ext.c
kernel/sched/ext/internal.h