diff options
author | 2024-07-12 08:20:33 -1000 | |
---|---|---|
committer | 2024-07-12 08:20:33 -1000 | |
commit | f47a818950dd5e5d16eb6e9c1713bb0bc61649cd (patch) | |
tree | fcd6043b68c4db74531942a7e5a79d94028a64f5 /kernel/sched/sched.h | |
parent | sched_ext: Unpin and repin rq lock from balance_scx() (diff) | |
download | wireguard-linux-f47a818950dd5e5d16eb6e9c1713bb0bc61649cd.tar.xz wireguard-linux-f47a818950dd5e5d16eb6e9c1713bb0bc61649cd.zip |
sched_ext: s/SCX_RQ_BALANCING/SCX_RQ_IN_BALANCE/ and add SCX_RQ_IN_WAKEUP
SCX_RQ_BALANCING is used to mark that the rq is currently in balance().
Rename it to SCX_RQ_IN_BALANCE and add SCX_RQ_IN_WAKEUP which marks whether
the rq is currently enqueueing for a wakeup. This will be used to implement
direct dispatching to local DSQ of another CPU.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: David Vernet <void@manifault.com>
Diffstat (limited to '')
-rw-r--r-- | kernel/sched/sched.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index 86314a17f1c7..8a0e8052f6b0 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -737,8 +737,10 @@ enum scx_rq_flags { * only while the BPF scheduler considers the CPU to be online. */ SCX_RQ_ONLINE = 1 << 0, - SCX_RQ_BALANCING = 1 << 1, - SCX_RQ_CAN_STOP_TICK = 1 << 2, + SCX_RQ_CAN_STOP_TICK = 1 << 1, + + SCX_RQ_IN_WAKEUP = 1 << 16, + SCX_RQ_IN_BALANCE = 1 << 17, }; struct scx_rq { |