diff options
author | Tejun Heo <tj@kernel.org> | 2024-09-04 10:54:28 +0300 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2024-09-04 10:54:28 +0300 |
commit | 8b1451f2f723f845c05b8bad3d4c45de284338b5 (patch) | |
tree | 40c1c3eb2b609f70122f362c629c3b80bf7b1276 /include/linux/sched | |
parent | 7c65ae81ea86a6ed8086e1a5651acd766187f19b (diff) | |
download | linux-8b1451f2f723f845c05b8bad3d4c45de284338b5.tar.xz |
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>
Diffstat (limited to 'include/linux/sched')
-rw-r--r-- | include/linux/sched/ext.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/sched/ext.h b/include/linux/sched/ext.h index 69f68e2121a8..db2a266113ac 100644 --- a/include/linux/sched/ext.h +++ b/include/linux/sched/ext.h @@ -71,7 +71,6 @@ struct scx_dispatch_q { /* scx_entity.flags */ enum scx_ent_flags { SCX_TASK_QUEUED = 1 << 0, /* on ext runqueue */ - SCX_TASK_BAL_KEEP = 1 << 1, /* balance decided to keep current */ SCX_TASK_RESET_RUNNABLE_AT = 1 << 2, /* runnable_at should be reset */ SCX_TASK_DEQD_FOR_SLEEP = 1 << 3, /* last dequeue was for SLEEP */ |