]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sched_ext: Replace SCX_TASK_BAL_KEEP with SCX_RQ_BAL_KEEP
authorTejun Heo <tj@kernel.org>
Wed, 4 Sep 2024 07:54:28 +0000 (21:54 -1000)
committerTejun Heo <tj@kernel.org>
Wed, 4 Sep 2024 07:54:28 +0000 (21:54 -1000)
commit8b1451f2f723f845c05b8bad3d4c45de284338b5
tree40c1c3eb2b609f70122f362c629c3b80bf7b1276
parent7c65ae81ea86a6ed8086e1a5651acd766187f19b
sched_ext: Replace SCX_TASK_BAL_KEEP with SCX_RQ_BAL_KEEP

SCX_TASK_BAL_KEEP is used by balance_one() to tell pick_next_task_scx() to
keep running the current task. It's not really a task property. Replace it
with SCX_RQ_BAL_KEEP which resides in rq->scx.flags and is a better fit for
the usage. Also, the existing clearing rule is unnecessarily strict and
makes it difficult to use with core-sched. Just clear it on entry to
balance_one().

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