diff options
| author | Andrea Righi <arighi@nvidia.com> | 2025-06-04 16:33:13 +0200 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2025-06-09 06:25:24 -1000 |
| commit | e212743bd727c3fcffcd73b6c1d906546ee83805 (patch) | |
| tree | af63de6a3bb0f2dc9464c8c09a229946dd34b220 /kernel/sched/ext.h | |
| parent | 353656eb84fef8ffece3b1be4345cbacbbb5267f (diff) | |
sched_ext: Make scx_rq_bypassing() inline
scx_rq_bypassing() is used both from ext.c and ext_idle.c, move it to
ext.h as a static inline function.
No functional changes.
Signed-off-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/sched/ext.h')
| -rw-r--r-- | kernel/sched/ext.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/sched/ext.h b/kernel/sched/ext.h index 6e5072f57771..d30f2d1bc00d 100644 --- a/kernel/sched/ext.h +++ b/kernel/sched/ext.h @@ -13,6 +13,11 @@ static inline bool scx_kf_allowed_if_unlocked(void) return !current->scx.kf_mask; } +static inline bool scx_rq_bypassing(struct rq *rq) +{ + return unlikely(rq->scx.flags & SCX_RQ_BYPASSING); +} + DECLARE_STATIC_KEY_FALSE(scx_ops_allow_queued_wakeup); void scx_tick(struct rq *rq); |